X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fdecklink_output.cpp;h=00d80432564c569f437a0817e3dafc22a9a3c37d;hb=3941206233723cb45596b1ca54f00ab82e080268;hp=3dd5243c5998b5a8c2b5efb747366d4dc9652ce4;hpb=c4497a099d6a01ff2eedb483c2589ef70e7c657c;p=nageru
diff --git a/nageru/decklink_output.cpp b/nageru/decklink_output.cpp
index 3dd5243..00d8043 100644
--- a/nageru/decklink_output.cpp
+++ b/nageru/decklink_output.cpp
@@ -564,11 +564,11 @@ void DeckLinkOutput::present_thread_func()
for ( ;; ) {
unique_ptr frame;
{
- unique_lock lock(frame_queue_mutex);
- frame_queues_changed.wait(lock, [this]{
- return should_quit.should_quit() || !pending_video_frames.empty();
- });
- if (should_quit.should_quit()) {
+ unique_lock lock(frame_queue_mutex);
+ frame_queues_changed.wait(lock, [this]{
+ return should_quit.should_quit() || !pending_video_frames.empty();
+ });
+ if (should_quit.should_quit()) {
return;
}
frame = move(pending_video_frames.front());