diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-01-27 23:12:13 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-01-27 23:12:13 +0000 |
commit | fba4194f43f2c644460122c33e4b4eb82e70bf2d (patch) | |
tree | f060c359aaa79e12a403390bdd63fc3e3dc7eb10 /src | |
parent | c0c0bac6573c2c89894d3ee20a9b01e452cea6fd (diff) | |
download | mpd-fba4194f43f2c644460122c33e4b4eb82e70bf2d.tar.gz mpd-fba4194f43f2c644460122c33e4b4eb82e70bf2d.tar.xz mpd-fba4194f43f2c644460122c33e4b4eb82e70bf2d.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/audioOutputs/audioOutput_alsa.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |