aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-17 17:53:44 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 17:53:44 +0200
commitbae98f777b5e97ccd25d79d60a28f75116308626 (patch)
treec021ad36cbd10d5c64df0f24a14a5572daaa4491
parent7ca19736c9ab90811965207010f0071d9a4b9df4 (diff)
downloadmpd-bae98f777b5e97ccd25d79d60a28f75116308626.tar.gz
mpd-bae98f777b5e97ccd25d79d60a28f75116308626.tar.xz
mpd-bae98f777b5e97ccd25d79d60a28f75116308626.zip
decoder: notify player after entering decodeStart()
Wake up the player as soon as the decoder thread has entered its loop. This fixes a dead lock when the input is blocking.
-rw-r--r--src/decoder_thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index f0f315f3a..32ab972c8 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -55,6 +55,7 @@ static void decodeStart(void)
dc.state = DECODE_STATE_START;
dc.command = DECODE_COMMAND_NONE;
+ notify_signal(&pc.notify);
/* wait for the input stream to become ready; its metadata
will be available then */