From 418dac6f946eca40f2140c11301ce492b7d16a43 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 14 Nov 2008 17:55:45 +0100 Subject: [PATCH] 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(). --- src/player_thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/player_thread.c b/src/player_thread.c index 9f2ff4389..7570443da 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -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; }