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:
parent
158c23f238
commit
4196886e93
@ -230,6 +230,9 @@ int decoderInit(PlayerControl * pc, Buffer * cb, AudioFormat *af,
|
|||||||
/* CHILD */
|
/* CHILD */
|
||||||
unblockSignals();
|
unblockSignals();
|
||||||
|
|
||||||
|
finishAudio();
|
||||||
|
finishAudioDriver();
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
if(dc->start) {
|
if(dc->start) {
|
||||||
strncpy(dc->file,pc->file,MAXPATHLEN);
|
strncpy(dc->file,pc->file,MAXPATHLEN);
|
||||||
|
Loading…
Reference in New Issue
Block a user