From 6ef428af2e554089bc3ba4104b714cfb36bfc719 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 31 Oct 2009 19:22:56 +0100 Subject: 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. --- src/player_control.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/player_control.h') diff --git a/src/player_control.h b/src/player_control.h index 449e98aa5..c1fd52d81 100644 --- a/src/player_control.h +++ b/src/player_control.h @@ -25,6 +25,8 @@ #include +struct decoder_control; + enum player_state { PLAYER_STATE_STOP = 0, PLAYER_STATE_PAUSE, @@ -155,7 +157,7 @@ player_wait(void) * Note the small difference to the player_wait() function! */ void -player_wait_decoder(void); +player_wait_decoder(struct decoder_control *dc); /** * Signals the #player_control object. The object should be locked -- cgit v1.2.3