Commit 418dac6f authored by Max Kellermann's avatar Max Kellermann

player: wake up decoder before waiting for xfade chunks

Fix a deadlock: when the decoder waited for buffer space, the player could enter a deadlock situation because it waits for more chunks for crossfading chunks. Signal the decoder before entering notify_wait().
parent 440b1ea3
......@@ -429,6 +429,7 @@ static void do_play(void)
/* wait for the
decoder */
music_pipe_set_lazy(false);
notify_signal(&dc.notify);
notify_wait(&pc.notify);
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment