DecoderInternal: lock DecoderControl in _flush_chunk()
Must hold the Mutex to signal the Cond object safely.
This commit is contained in:
parent
8e7d6eb151
commit
9802e74859
@ -101,5 +101,7 @@ decoder_flush_chunk(Decoder &decoder)
|
|||||||
|
|
||||||
decoder.chunk = nullptr;
|
decoder.chunk = nullptr;
|
||||||
|
|
||||||
|
dc.Lock();
|
||||||
dc.client_cond.signal();
|
dc.client_cond.signal();
|
||||||
|
dc.Unlock();
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,8 @@ decoder_get_chunk(Decoder &decoder);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Flushes the current chunk.
|
* Flushes the current chunk.
|
||||||
|
*
|
||||||
|
* Caller must not lock the #DecoderControl object.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
decoder_flush_chunk(Decoder &decoder);
|
decoder_flush_chunk(Decoder &decoder);
|
||||||
|
Loading…
Reference in New Issue
Block a user