//
// There is currently no audio support. There is also no support for changing
// the video underway (unlike images), although there really should be.
-// Finally, there is currently no support for controlling the video from Lua.
#include <assert.h>
#include <stdint.h>
#include <thread>
#include "bmusb/bmusb.h"
+#include "quittable_sleeper.h"
class FFmpegCapture : public bmusb::CaptureInterface
{
std::unique_ptr<bmusb::FrameAllocator> owned_audio_frame_allocator;
bmusb::frame_callback_t frame_callback = nullptr;
- std::atomic<bool> producer_thread_should_quit{false};
+ QuittableSleeper producer_thread_should_quit;
std::thread producer_thread;
std::mutex queue_mu;