diff options
author | Max Kellermann <max@duempel.org> | 2008-11-14 17:55:45 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-14 17:55:45 +0100 |
commit | 418dac6f946eca40f2140c11301ce492b7d16a43 (patch) | |
tree | cb8aed83d0d01ffa97a6b924ecf2fce76340309c /src | |
parent | 440b1ea3ea0e2bc0f56c8f39f917e59d1761a3d0 (diff) | |
download | mpd-418dac6f946eca40f2140c11301ce492b7d16a43.tar.gz mpd-418dac6f946eca40f2140c11301ce492b7d16a43.tar.xz mpd-418dac6f946eca40f2140c11301ce492b7d16a43.zip |
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().
Diffstat (limited to '')
-rw-r--r-- | src/player_thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |