decoder/Thread: move decoder_command_finished_locked() to DecoderControl
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user