diff options
author | Max Kellermann <max@duempel.org> | 2013-01-20 17:48:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-20 17:48:23 +0100 |
commit | e1b03b4a716dbb35a737d34fba531e623f7980f3 (patch) | |
tree | ac2143b4b3122d594000a70b51ca29fb2c937307 /src/DecoderControl.hxx | |
parent | e6ed592b8aeb5025be0893ee99ff44e46a9ffd1c (diff) | |
download | mpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.tar.gz mpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.tar.xz mpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.zip |
PlayerControl: move functions into the class
Diffstat (limited to 'src/DecoderControl.hxx')
-rw-r--r-- | src/DecoderControl.hxx | 9 |
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 |