aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-17 12:36:15 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-17 12:36:15 +0000
commit4196886e93be1de72b3a5057e2ccad3d84b92c5c (patch)
tree2cb6ba3ea6ae973118e42e8b3e18a46c1b3e8b01 /src
parent158c23f23850b6c10a596ee8f003344ff1871302 (diff)
downloadmpd-4196886e93be1de72b3a5057e2ccad3d84b92c5c.tar.gz
mpd-4196886e93be1de72b3a5057e2ccad3d84b92c5c.tar.xz
mpd-4196886e93be1de72b3a5057e2ccad3d84b92c5c.zip
close audio() and audioDriver() on decode process fork
git-svn-id: https://svn.musicpd.org/mpd/trunk@810 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/decode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c
index fc0bd84af..8f1de21f5 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -230,6 +230,9 @@ int decoderInit(PlayerControl * pc, Buffer * cb, AudioFormat *af,
/* CHILD */
unblockSignals();
+ finishAudio();
+ finishAudioDriver();
+
while(1) {
if(dc->start) {
strncpy(dc->file,pc->file,MAXPATHLEN);