decoder/Control: inline WaitForDecoder()
This commit is contained in:
parent
af4ffa91fd
commit
04e2d08417
@ -40,12 +40,6 @@ DecoderControl::~DecoderControl() noexcept
|
||||
ClearError();
|
||||
}
|
||||
|
||||
void
|
||||
DecoderControl::WaitForDecoder(std::unique_lock<Mutex> &lock) noexcept
|
||||
{
|
||||
client_cond.wait(lock);
|
||||
}
|
||||
|
||||
void
|
||||
DecoderControl::SetReady(const AudioFormat audio_format,
|
||||
bool _seekable, SignedSongTime _duration) noexcept
|
||||
|
@ -215,7 +215,9 @@ public:
|
||||
*
|
||||
* Caller must hold the lock.
|
||||
*/
|
||||
void WaitForDecoder(std::unique_lock<Mutex> &lock) noexcept;
|
||||
void WaitForDecoder(std::unique_lock<Mutex> &lock) noexcept {
|
||||
client_cond.wait(lock);
|
||||
}
|
||||
|
||||
bool IsIdle() const noexcept {
|
||||
return state == DecoderState::STOP ||
|
||||
|
Loading…
Reference in New Issue
Block a user