aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderControl.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-20 17:48:23 +0100
committerMax Kellermann <max@duempel.org>2013-01-20 17:48:23 +0100
commite1b03b4a716dbb35a737d34fba531e623f7980f3 (patch)
treeac2143b4b3122d594000a70b51ca29fb2c937307 /src/DecoderControl.hxx
parente6ed592b8aeb5025be0893ee99ff44e46a9ffd1c (diff)
downloadmpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.tar.gz
mpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.tar.xz
mpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.zip
PlayerControl: move functions into the class
Diffstat (limited to '')
-rw-r--r--src/DecoderControl.hxx9
1 files changed, 9 insertions, 0 deletions
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