Commit 9802e748 authored by Max Kellermann's avatar Max Kellermann

DecoderInternal: lock DecoderControl in _flush_chunk()

Must hold the Mutex to signal the Cond object safely.
parent 8e7d6eb1
......@@ -101,5 +101,7 @@ decoder_flush_chunk(Decoder &decoder)
decoder.chunk = nullptr;
dc.Lock();
dc.client_cond.signal();
dc.Unlock();
}
......@@ -108,6 +108,8 @@ decoder_get_chunk(Decoder &decoder);
/**
* Flushes the current chunk.
*
* Caller must not lock the #DecoderControl object.
*/
void
decoder_flush_chunk(Decoder &decoder);
......
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