]> git.sesse.net Git - nageru/blobdiff - mixer.h
Fix crash on exit when there are no USB cards.
[nageru] / mixer.h
diff --git a/mixer.h b/mixer.h
index e893ffb8427728b235d21f93c7a9169991c14aef..7abbaec1a5e5e1273f89925d6adbedbe66f048dc 100644 (file)
--- a/mixer.h
+++ b/mixer.h
@@ -424,6 +424,7 @@ private:
        int64_t pts_int = 0;  // In TIMEBASE units.
 
        std::mutex bmusb_mutex;
+       bool has_bmusb_thread = false;
        struct CaptureCard {
                CaptureInterface *capture;
                std::unique_ptr<PBOFrameAllocator> frame_allocator;