decoder/Thread: move decoder_command_finished_locked() to DecoderControl

This commit is contained in:
Max Kellermann
2015-12-31 13:06:31 +01:00
parent f081696f62
commit 6507993972
2 changed files with 17 additions and 20 deletions

View File

@@ -350,6 +350,20 @@ private:
}
public:
/**
* Marks the current command as "finished" and notifies the
* client (= player thread).
*
* To be called from the decoder thread. Caller must lock the
* mutex.
*/
void CommandFinishedLocked() {
assert(command != DecoderCommand::NONE);
command = DecoderCommand::NONE;
client_cond.signal();
}
/**
* Start the decoder.
*