aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-31 19:22:56 +0100
committerMax Kellermann <max@duempel.org>2009-10-31 19:22:56 +0100
commit6ef428af2e554089bc3ba4104b714cfb36bfc719 (patch)
tree949ac8f4abc93d86de2fb8391b30df6db6eae63b /src/player_control.c
parent806496dfc937d9b55e00672d42928a25cfa67c90 (diff)
downloadmpd-6ef428af2e554089bc3ba4104b714cfb36bfc719.tar.gz
mpd-6ef428af2e554089bc3ba4104b714cfb36bfc719.tar.xz
mpd-6ef428af2e554089bc3ba4104b714cfb36bfc719.zip
decoder_control: removed the global variable "dc"
Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
Diffstat (limited to '')
-rw-r--r--src/player_control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player_control.c b/src/player_control.c
index aa018ceda..ab162ef26 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -53,11 +53,11 @@ void pc_deinit(void)
}
void
-player_wait_decoder(void)
+player_wait_decoder(struct decoder_control *dc)
{
/* during this function, the decoder lock is held, because
we're waiting for the decoder thread */
- g_cond_wait(pc.cond, dc.mutex);
+ g_cond_wait(pc.cond, dc->mutex);
}
void