Commit 04e2d084 authored by Max Kellermann's avatar Max Kellermann

decoder/Control: inline WaitForDecoder()

parent af4ffa91
......@@ -41,12 +41,6 @@ DecoderControl::~DecoderControl() noexcept
}
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 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment