Know about SND_PCM_STATE_RUNNING, might fix some bugs

git-svn-id: https://svn.musicpd.org/mpd/trunk@7077 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Qball Cow 2007-12-16 15:46:54 +00:00
parent 704daecbf2
commit fd75619c3b
1 changed files with 4 additions and 0 deletions

View File

@ -350,6 +350,10 @@ static int alsa_errorRecovery(AlsaData * ad, int err)
snd_pcm_close(ad->pcmHandle);
ad->pcmHandle = NULL;
break;
/* this is no error, so just keep running */
case SND_PCM_STATE_RUNNING:
err = 0;
break;
default:
/* unknown state, do nothing */
break;