decklink: Allow VANC to be used for all modes

This commit is contained in:
Sebastian Dröge 2019-04-22 15:42:12 +03:00 committed by Sebastian Dröge
parent 88f9724114
commit ba21c2106b
3 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -211,7 +211,6 @@ struct _GstDecklinkMode {
int par_d;
gboolean tff;
const gchar *colorimetry;
gboolean vanc;
};
const GstDecklinkMode * gst_decklink_get_mode (GstDecklinkModeEnum e);

View file

@ -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)