]> git.sesse.net Git - nageru/blobdiff - nageru/decklink_capture.cpp
Revert "Make for faster shutdown of DeckLink cards."
[nageru] / nageru / decklink_capture.cpp
index ab5e1ec818f720c6fba4dc35935c1986df1aaaba..07031a10e23dcd7cfaa4ca4aa33149bd4e835b2c 100644 (file)
@@ -350,11 +350,14 @@ void DeckLinkCapture::stop_dequeue_thread()
                fprintf(stderr, "StopStreams failed with error 0x%x\n", result);
                abort();
        }
-
-       // 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.
-
+       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);
+       }
        running = false;
 }