From: Steinar H. Gunderson Date: Thu, 8 Oct 2015 23:00:30 +0000 (+0200) Subject: Fix a warning. X-Git-Tag: 1.0.0~257 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1e019c88da9b9d2f5f45fec429f49fa6f01ef08a;p=nageru Fix a warning. --- 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;