aboutsummaryrefslogtreecommitdiff
path: root/src/DecoderInternal.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-21 10:13:29 +0100
committerMax Kellermann <max@duempel.org>2013-01-21 10:13:29 +0100
commit32799fef5c60568ffc693edab2e39d50549040d4 (patch)
treee19d45b501b98daed8665fe71628839d4bbfc391 /src/DecoderInternal.cxx
parente1b03b4a716dbb35a737d34fba531e623f7980f3 (diff)
DecoderControl: move functions into the class
Diffstat (limited to 'src/DecoderInternal.cxx')
-rw-r--r--src/DecoderInternal.cxx6
1 files changed, 3 insertions, 3 deletions
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;