aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DecoderInternal.cxx2
-rw-r--r--src/DecoderInternal.hxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/DecoderInternal.cxx b/src/DecoderInternal.cxx
index 25d9c3f05..7cca5dbe3 100644
--- a/src/DecoderInternal.cxx
+++ b/src/DecoderInternal.cxx
@@ -101,5 +101,7 @@ decoder_flush_chunk(Decoder &decoder)
decoder.chunk = nullptr;
+ dc.Lock();
dc.client_cond.signal();
+ dc.Unlock();
}
diff --git a/src/DecoderInternal.hxx b/src/DecoderInternal.hxx
index ffe02ed7f..46069a561 100644
--- a/src/DecoderInternal.hxx
+++ b/src/DecoderInternal.hxx
@@ -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);