From fba4194f43f2c644460122c33e4b4eb82e70bf2d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 27 Jan 2008 23:12:13 +0000 Subject: Know about SND_PCM_STATE_RUNNING, might fix some bugs From qball, r7077 in trunk git-svn-id: https://svn.musicpd.org/mpd/branches/branch-0.13.0-fixes@7169 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutputs/audioOutput_alsa.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/audioOutputs') diff --git a/src/audioOutputs/audioOutput_alsa.c b/src/audioOutputs/audioOutput_alsa.c index 8c8f73b42..ffc5f4af4 100644 --- a/src/audioOutputs/audioOutput_alsa.c +++ b/src/audioOutputs/audioOutput_alsa.c @@ -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; -- cgit v1.2.3