decklinkvideosrc: Don't check for closed captions when there's no signal

Otherwise the gst_decklink_video_format_from_type() call spams the logs
with one "Unknown pixel format 0x0" line per frame.
This commit is contained in:
Vivia Nikolaidou 2018-05-11 12:30:35 +03:00
parent 45d6256dad
commit 752d2bb6e3

View file

@ -987,7 +987,7 @@ gst_decklink_video_src_create (GstPushSrc * bsrc, GstBuffer ** buffer)
// If we have a format that supports VANC and we are asked to extract CC, // If we have a format that supports VANC and we are asked to extract CC,
// then do it here. // then do it here.
if (self->output_cc && mode->vanc) if (self->output_cc && mode->vanc && !self->no_signal)
extract_cc_from_vbi (self, buffer, vf, mode); extract_cc_from_vbi (self, buffer, vf, mode);
if (f.no_signal) if (f.no_signal)