From e1b03b4a716dbb35a737d34fba531e623f7980f3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Jan 2013 17:48:23 +0100 Subject: PlayerControl: move functions into the class --- src/DecoderControl.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/DecoderControl.hxx') diff --git a/src/DecoderControl.hxx b/src/DecoderControl.hxx index 42c28d785..02b98672c 100644 --- a/src/DecoderControl.hxx +++ b/src/DecoderControl.hxx @@ -129,6 +129,15 @@ struct decoder_control { char *mixramp_start; char *mixramp_end; char *mixramp_prev_end; + + /** + * Waits for a signal from the decoder thread. This object + * must be locked prior to calling this function. This method + * is only valid in the player thread. + */ + void WaitForDecoder() { + g_cond_wait(client_cond, mutex); + } }; G_GNUC_MALLOC -- cgit v1.2.3