DecoderControl: move functions into the class

This commit is contained in:
Max Kellermann
2013-01-21 10:13:29 +01:00
parent e1b03b4a71
commit 32799fef5c
6 changed files with 298 additions and 377 deletions

View File

@@ -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;