close audio() and audioDriver() on decode process fork

git-svn-id: https://svn.musicpd.org/mpd/trunk@810 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-04-17 12:36:15 +00:00
parent 158c23f238
commit 4196886e93

View File

@ -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);