X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fdecklink_output.h;fp=nageru%2Fdecklink_output.h;h=4aa76beca45df780d86d758401319cdeb7063005;hb=403942c08c2403321fcfd5e6c5f2e6aa7c099874;hp=f008dc3b32bec8f0c1aba542c4d3de3a8167b047;hpb=c443b4ca0f527ed039d4b1014c1dd654c230eb15;p=nageru diff --git a/nageru/decklink_output.h b/nageru/decklink_output.h index f008dc3..4aa76be 100644 --- a/nageru/decklink_output.h +++ b/nageru/decklink_output.h @@ -46,7 +46,7 @@ public: // where you get a freeze if querying an IDeckLinkInput interface // on an already-started card. bool set_device(IDeckLink *decklink, IDeckLinkInput *input_arg); - void start_output(uint32_t mode, int64_t base_pts); // Mode comes from get_available_video_modes(). + void start_output(uint32_t mode, int64_t base_pts, bool is_master_card); // Mode comes from get_available_video_modes(). void end_output(); void send_frame(GLuint y_tex, GLuint cbcr_tex, movit::YCbCrLumaCoefficients ycbcr_coefficients, const std::vector &input_frames, int64_t pts, int64_t duration); @@ -143,7 +143,7 @@ private: std::unordered_set scheduled_frames; // Owned by the driver, so no unique_ptr. Under . std::condition_variable frame_queues_changed; - bool playback_initiated = false, playback_started = false; + bool playback_initiated = false, playback_started = false, is_master_card = false; int64_t base_pts, frame_duration; BMDDisplayModeFlags current_mode_flags = 0; bool last_frame_had_mode_mismatch = false;