X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=ffmpeg_capture.h;h=0fbc3e895ddaa6726fa976378f3d8a526009ab06;hp=705d25ffe5a47461e297401e81e7c6ccd6b69eaf;hb=4a0187ffb4075b4d217b8d9e9c96cac548b199d8;hpb=1ddeee498397ab599d0ee131f7896f543486d0ad diff --git a/ffmpeg_capture.h b/ffmpeg_capture.h index 705d25f..0fbc3e8 100644 --- a/ffmpeg_capture.h +++ b/ffmpeg_capture.h @@ -225,6 +225,7 @@ private: int card_index = -1; double rate = 1.0; std::atomic should_interrupt{false}; + bool last_frame_was_connected = true; bool has_dequeue_callbacks = false; std::function dequeue_init_callback = nullptr; @@ -246,7 +247,7 @@ private: std::thread producer_thread; int64_t pts_origin, last_pts; - std::chrono::steady_clock::time_point start, next_frame_start; + std::chrono::steady_clock::time_point start, next_frame_start, last_frame; std::mutex queue_mu; struct QueuedCommand {