From bae98f777b5e97ccd25d79d60a28f75116308626 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Oct 2008 17:53:44 +0200 Subject: 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. --- src/decoder_thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/decoder_thread.c') 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 */ -- cgit v1.2.3