X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fdecklink_capture.cpp;h=07031a10e23dcd7cfaa4ca4aa33149bd4e835b2c;hb=fc130015fa36ffc34bc9bc7db927f7980d451d8d;hp=ab5e1ec818f720c6fba4dc35935c1986df1aaaba;hpb=9ffd4f03f314cc6e0254449593def95c9bc203d6;p=nageru diff --git a/nageru/decklink_capture.cpp b/nageru/decklink_capture.cpp index ab5e1ec..07031a1 100644 --- a/nageru/decklink_capture.cpp +++ b/nageru/decklink_capture.cpp @@ -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; }