From 32799fef5c60568ffc693edab2e39d50549040d4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Jan 2013 10:13:29 +0100 Subject: DecoderControl: move functions into the class --- src/DecoderInternal.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/DecoderInternal.cxx') diff --git a/src/DecoderInternal.cxx b/src/DecoderInternal.cxx index 6970a220..505d2bc9 100644 --- a/src/DecoderInternal.cxx +++ b/src/DecoderInternal.cxx @@ -57,7 +57,7 @@ need_chunks(struct decoder_control *dc, bool do_wait) return dc->command; if (do_wait) { - decoder_wait(dc); + dc->Wait(); g_cond_signal(dc->client_cond); return dc->command; @@ -89,9 +89,9 @@ decoder_get_chunk(struct decoder *decoder) return decoder->chunk; } - decoder_lock(dc); + dc->Lock(); cmd = need_chunks(dc, true); - decoder_unlock(dc); + dc->Unlock(); } while (cmd == DECODE_COMMAND_NONE); return NULL; -- cgit v1.2.3