DecoderInternal: lock DecoderControl in _flush_chunk()

Must hold the Mutex to signal the Cond object safely.
This commit is contained in:
Max Kellermann
2013-11-06 23:18:55 +01:00
parent 8e7d6eb151
commit 9802e74859
2 changed files with 4 additions and 0 deletions

View File

@@ -101,5 +101,7 @@ decoder_flush_chunk(Decoder &decoder)
decoder.chunk = nullptr;
dc.Lock();
dc.client_cond.signal();
dc.Unlock();
}