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:
parent
704daecbf2
commit
fd75619c3b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue