Commit ba21c210 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Sebastian Dröge

decklink: Allow VANC to be used for all modes

parent 88f97241
......@@ -256,12 +256,12 @@ gst_decklink_audio_channels_get_type (void)
return (GType) id;
}
#define NTSC 10, 11, false, "bt601", FALSE
#define PAL 12, 11, true, "bt601", FALSE
#define NTSC_WS 40, 33, false, "bt601", FALSE
#define PAL_WS 16, 11, true, "bt601", FALSE
#define HD 1, 1, true, "bt709", TRUE
#define UHD 1, 1, true, "bt2020", TRUE
#define NTSC 10, 11, false, "bt601"
#define PAL 12, 11, true, "bt601"
#define NTSC_WS 40, 33, false, "bt601"
#define PAL_WS 16, 11, true, "bt601"
#define HD 1, 1, true, "bt709"
#define UHD 1, 1, true, "bt2020"
static const GstDecklinkMode modes[] = {
{bmdModeNTSC, 720, 486, 30000, 1001, true, NTSC}, // default is ntsc
......
......@@ -211,7 +211,6 @@ struct _GstDecklinkMode {
int par_d;
gboolean tff;
const gchar *colorimetry;
gboolean vanc;
};
const GstDecklinkMode * gst_decklink_get_mode (GstDecklinkModeEnum e);
......
......@@ -1158,7 +1158,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,
// then do it here.
if (self->output_cc && mode->vanc && !self->no_signal)
if (self->output_cc && !self->no_signal)
extract_cc_from_vbi (self, buffer, vf, mode);
if (f.no_signal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment