]> git.sesse.net Git - nageru/blobdiff - decklink_capture.cpp
Use the new has_signal flag.
[nageru] / decklink_capture.cpp
index 3243788d4a8c58936e365dded918b9ce9b852922..e7f8eba0a16531c7341619be0cb2e8f7541b583a 100644 (file)
@@ -151,11 +151,7 @@ HRESULT STDMETHODCALLTYPE DeckLinkCapture::VideoInputFrameArrived(
        VideoFormat video_format;
 
        if (video_frame) {
-               if (video_frame->GetFlags() & bmdFrameHasNoInputSource) {
-                       // TODO: Make a way to propagate this flag down to the theme code,
-                       // independent of the signal resolution.
-                       fprintf(stderr, "Warning: No input signal detected\n");
-               }
+               video_format.has_signal = !(video_frame->GetFlags() & bmdFrameHasNoInputSource);
 
                int width = video_frame->GetWidth();
                int height = video_frame->GetHeight();