X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=decklink_capture.cpp;h=92fd6ae296e567a402928bb3fd15a7e4f9300042;hb=a0083c1e4712a6e9f7c468f0961b292cfd9b69b0;hp=16c187d2e56b55c6553bd69478e0c34ea432cd08;hpb=4abf88e64e7aaf2e87c05a2294d1ddb1ebf9e092;p=nageru diff --git a/decklink_capture.cpp b/decklink_capture.cpp index 16c187d..92fd6ae 100644 --- a/decklink_capture.cpp +++ b/decklink_capture.cpp @@ -443,8 +443,12 @@ void DeckLinkCapture::stop_dequeue_thread() void DeckLinkCapture::set_video_mode(uint32_t video_mode_id) { - if (input->StopStreams() != S_OK) { - fprintf(stderr, "StopStreams failed\n"); + if (input->PauseStreams() != S_OK) { + fprintf(stderr, "PauseStreams failed\n"); + exit(1); + } + if (input->FlushStreams() != S_OK) { + fprintf(stderr, "FlushStreams failed\n"); exit(1); }