]> git.sesse.net Git - nageru/commitdiff
Fix a warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 8 Oct 2015 23:00:30 +0000 (01:00 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 8 Oct 2015 23:00:30 +0000 (01:00 +0200)
bmusb.cpp

index 636fea51e5ce8f4e2108fa5d9cc5d8fdaae4d777..03f8fd210120da980f66f2c4eeab8cde2eed5967 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -153,7 +153,7 @@ void BMUSBCapture::dequeue_thread_func()
        }
        while (!dequeue_thread_should_quit) {
                unique_lock<mutex> 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;