X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=nageru%2Fdecklink_capture.cpp;fp=nageru%2Fdecklink_capture.cpp;h=6ccbadc339791ca12816dcc57920855f049ad404;hp=eefb537cd1b3409d9f51593b1432e9360ff534b4;hb=9a0f617093e7cde02a824b90f82f129c47193939;hpb=0eaa4d8a29782ae20d7b54fd8334371e724f1c57 diff --git a/nageru/decklink_capture.cpp b/nageru/decklink_capture.cpp index eefb537..6ccbadc 100644 --- a/nageru/decklink_capture.cpp +++ b/nageru/decklink_capture.cpp @@ -350,14 +350,12 @@ void DeckLinkCapture::stop_dequeue_thread() fprintf(stderr, "StopStreams failed with error 0x%x\n", result); abort(); } - 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 (except when switching to output mode, + // where DeckLinkOutput does the disabling), so StopStreams() will suffice. + running = false; }