]> git.sesse.net Git - nageru/blobdiff - nageru/decklink_output.cpp
Move from unique_lock to lock_guard everywhere we can. Perhaps ever so slightly clear...
[nageru] / nageru / decklink_output.cpp
index bd59b32a5a3abb0eb762c89ed49fcc8991bc75fc..ed66212a26bf0ddfa0ab0cfac4214f6b7430d7e8 100644 (file)
@@ -317,7 +317,7 @@ void DeckLinkOutput::send_frame(GLuint y_tex, GLuint cbcr_tex, YCbCrLumaCoeffici
        frame->duration = duration;
 
        {
-               unique_lock<mutex> lock(frame_queue_mutex);
+               lock_guard<mutex> lock(frame_queue_mutex);
                pending_video_frames.push(move(frame));
        }
        frame_queues_changed.notify_all();