aboutsummaryrefslogtreecommitdiff
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-01-10 21:27:43 +0100
committerMax Kellermann <max@duempel.org>2011-01-10 21:27:43 +0100
commita0ad96a787d5df3f0cbd0c40252312700320a849 (patch)
tree1d9c66b3880180ae6c7453515aaad7942a8b474a /src/player_thread.c
parent39c5af5dbc1ccf0b103daaaed642c2d8af3210a8 (diff)
decoder_control: store GCond object, not a player_control
Remove the decoder dependency on player_control. All player_control was needed for is to signal the player thread, and we can do that with a simple GCond as well.
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 6be7b888..d2ff1534 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -1024,7 +1024,7 @@ player_task(gpointer arg)
{
struct player_control *pc = arg;
- struct decoder_control *dc = dc_new(pc);
+ struct decoder_control *dc = dc_new(pc->cond);
decoder_thread_start(dc);
player_buffer = music_buffer_new(pc->buffer_chunks);