X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=decklink_capture.cpp;h=6507959251d08a82bec466f180949d4985bdc1f8;hb=e5a0d3dfb676087bdcef4c82876234782e46604c;hp=6dba068fca51108fcbfc3a55050efcc1223880ee;hpb=7c26af1581077cb63dc0bd76942f1f4262312f7f;p=nageru diff --git a/decklink_capture.cpp b/decklink_capture.cpp index 6dba068..6507959 100644 --- a/decklink_capture.cpp +++ b/decklink_capture.cpp @@ -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; }