From 1e019c88da9b9d2f5f45fec429f49fa6f01ef08a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 9 Oct 2015 01:00:30 +0200 Subject: [PATCH] Fix a warning. --- bmusb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bmusb.cpp b/bmusb.cpp index 636fea5..03f8fd2 100644 --- a/bmusb.cpp +++ b/bmusb.cpp @@ -153,7 +153,7 @@ void BMUSBCapture::dequeue_thread_func() } while (!dequeue_thread_should_quit) { unique_lock lock(queue_lock); - queues_not_empty.wait(lock, [this]{ return dequeue_thread_should_quit || !pending_video_frames.empty() && !pending_audio_frames.empty(); }); + queues_not_empty.wait(lock, [this]{ return dequeue_thread_should_quit || (!pending_video_frames.empty() && !pending_audio_frames.empty()); }); uint16_t video_timecode = pending_video_frames.front().timecode; uint16_t audio_timecode = pending_audio_frames.front().timecode; -- 2.39.2