X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_capture.h;h=24e6b5b40d3f9b780e71facdb7fb0dc347e5723c;hb=f07adb19f0e2571bf4894ec57e6fcfe4a3e5fd95;hp=e6b4ed481f6b151e8a687a1f7b0aec5dab7d0472;hpb=b6089b76678e76271616131672c5ba454a5d336d;p=nageru diff --git a/ffmpeg_capture.h b/ffmpeg_capture.h index e6b4ed4..24e6b5b 100644 --- a/ffmpeg_capture.h +++ b/ffmpeg_capture.h @@ -31,6 +31,7 @@ #include #include "bmusb/bmusb.h" +#include "quittable_sleeper.h" class FFmpegCapture : public bmusb::CaptureInterface { @@ -157,7 +158,7 @@ private: std::unique_ptr owned_audio_frame_allocator; bmusb::frame_callback_t frame_callback = nullptr; - std::atomic producer_thread_should_quit{false}; + QuittableSleeper producer_thread_should_quit; std::thread producer_thread; std::mutex queue_mu;