From b010bf3a39efe65db2251fbbf2640b2d9e539200 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 2 Sep 2015 17:03:50 +0100 Subject: Don't share _terminate. _terminate was being shared between enqueue() and the encoding threads so that when terminating and recreating the encoding threads any pending enqueue() was dropped (#683). --- src/lib/encoder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/encoder.h') diff --git a/src/lib/encoder.h b/src/lib/encoder.h index caadda591..76c87a9f7 100644 --- a/src/lib/encoder.h +++ b/src/lib/encoder.h @@ -96,7 +96,8 @@ private: bool _right_done; /* XXX: probably should be atomic */ - bool _terminate; + bool _terminate_enqueue; + bool _terminate_encoding; /** Mutex for _threads */ mutable boost::mutex _threads_mutex; std::list _threads; -- cgit v1.2.3