]> git.sesse.net Git - nageru/blobdiff - nageru/decklink_output.h
Fix DeckLink capture using the 11.7 or newer drivers.
[nageru] / nageru / decklink_output.h
index f1b40f468abdd703eb8df9c1e0410d3a78696d29..8213f498a9d0677df7fe77b928acc7dce8951825 100644 (file)
@@ -39,7 +39,11 @@ class DeckLinkOutput : public IDeckLinkVideoOutputCallback {
 public:
        DeckLinkOutput(movit::ResourcePool *resource_pool, QSurface *surface, unsigned width, unsigned height, unsigned card_index);
 
-       bool set_device(IDeckLink *output);
+       // The IDecklinkInput argument is to work around a bug
+       // in the 11.7 and newer drivers against older SDKs,
+       // 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 end_output();