]> git.sesse.net Git - nageru/commitdiff
Make for faster shutdown of DeckLink cards.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 29 Apr 2018 10:09:34 +0000 (12:09 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 10 May 2018 11:33:19 +0000 (13:33 +0200)
decklink_capture.cpp

index 6dba068fca51108fcbfc3a55050efcc1223880ee..6507959251d08a82bec466f180949d4985bdc1f8 100644 (file)
@@ -468,14 +468,11 @@ void DeckLinkCapture::stop_dequeue_thread()
                fprintf(stderr, "StopStreams failed with error 0x%x\n", result);
                exit(1);
        }
-       if (input->DisableVideoInput() != S_OK) {
-               fprintf(stderr, "Failed to disable video input for card %d\n", card_index);
-               exit(1);
-       }
-       if (input->DisableAudioInput() != S_OK) {
-               fprintf(stderr, "Failed to disable audio input for card %d\n", card_index);
-               exit(1);
-       }
+
+       // We could call DisableVideoInput() and DisableAudioInput() here,
+       // but they seem to be taking a really long time, and we only do this
+       // during shutdown anyway, so StopStreams() will suffice.
+
        running = false;
 }