X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.h;h=c4697310ec95757fecbfacea767ed887ba821e03;hb=6796837c2e3e08de8d530be233317a2fc4a43f72;hp=92395a1b4c8e78ed8b44aca05a1d29fb28af5c42;hpb=c76392ca2e019399e6123a7ba0849090a3f7a4ce;p=nageru diff --git a/mixer.h b/mixer.h index 92395a1..c469731 100644 --- a/mixer.h +++ b/mixer.h @@ -11,6 +11,7 @@ #include "bmusb.h" #include "h264encode.h" #include "pbo_frame_allocator.h" +#include "ref_counted_frame.h" #include "ref_counted_gl_sync.h" #define NUM_CARDS 2 @@ -101,13 +102,13 @@ private: QOpenGLContext *context; bool new_data_ready = false; // Whether new_frame contains anything. - FrameAllocator::Frame new_frame; + RefCountedFrame new_frame; GLsync new_data_ready_fence; // Whether new_frame is ready for rendering. std::condition_variable new_data_ready_changed; // Set whenever new_data_ready is changed. }; CaptureCard cards[NUM_CARDS]; // protected by - FrameAllocator::Frame bmusb_current_rendering_frame[NUM_CARDS]; + RefCountedFrame bmusb_current_rendering_frame[NUM_CARDS]; class OutputChannel { public: