aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2007-12-16 15:46:54 +0000
committerQball Cow <qball@qballcow.nl>2007-12-16 15:46:54 +0000
commitfd75619c3bac332af3305986f52066410bd7aedb (patch)
treed5ab1b585e90c68520cb1b9cdce36b3fa2303259 /src/audioOutputs
parent704daecbf2ab1d089335e6f727a4789f3965847b (diff)
downloadmpd-fd75619c3bac332af3305986f52066410bd7aedb.tar.gz
mpd-fd75619c3bac332af3305986f52066410bd7aedb.tar.xz
mpd-fd75619c3bac332af3305986f52066410bd7aedb.zip
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
Diffstat (limited to 'src/audioOutputs')
-rw-r--r--src/audioOutputs/audioOutput_alsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audioOutputs/audioOutput_alsa.c b/src/audioOutputs/audioOutput_alsa.c
index f22be742e..1122eb5bf 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;