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.
This commit is contained in:
Max Kellermann 2008-10-17 17:53:44 +02:00
parent 7ca19736c9
commit bae98f777b
1 changed files with 1 additions and 0 deletions

View File

@ -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 */