]> git.sesse.net Git - nageru/blobdiff - nageru/decklink_output.cpp
Fix DeckLink capture using the 11.7 or newer drivers.
[nageru] / nageru / decklink_output.cpp
index da172af686acbc3ff7acf489a7befd01a2efb2f7..20de9229fdc35e42502626c40b571f5741150f4c 100644 (file)
@@ -82,11 +82,9 @@ DeckLinkOutput::DeckLinkOutput(ResourcePool *resource_pool, QSurface *surface, u
        });
 }
 
-bool DeckLinkOutput::set_device(IDeckLink *decklink)
+bool DeckLinkOutput::set_device(IDeckLink *decklink, IDeckLinkInput *input_arg)
 {
-       if (decklink->QueryInterface(IID_IDeckLinkInput, (void**)&input) != S_OK) {
-               input = nullptr;
-       }
+       input_arg = input;
        if (decklink->QueryInterface(IID_IDeckLinkOutput, (void**)&output) != S_OK) {
                fprintf(stderr, "Warning: Card %u has no outputs\n", card_index);
                return false;