From 3ce1086b14d63a7915f6de7149f5bcc8e509e4d5 Mon Sep 17 00:00:00 2001 From: Lim Siew Hoon Date: Thu, 10 Dec 2020 15:37:14 +0800 Subject: [PATCH] intervideosrc: fix negotiation of interlaced caps In 1.0 the field in caps is called "interlace-mode", not "interlaced". Fixes #1480 Part-of: --- gst/inter/gstintervideosrc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/inter/gstintervideosrc.c b/gst/inter/gstintervideosrc.c index 7858e6ede5..9e607f3361 100644 --- a/gst/inter/gstintervideosrc.c +++ b/gst/inter/gstintervideosrc.c @@ -498,8 +498,9 @@ gst_inter_video_src_fixate (GstBaseSrc * src, GstCaps * caps) if (gst_structure_has_field (structure, "chroma-site")) gst_structure_fixate_field_string (structure, "chroma-site", "mpeg2"); - if (gst_structure_has_field (structure, "interlaced")) - gst_structure_fixate_field_boolean (structure, "interlaced", FALSE); + if (gst_structure_has_field (structure, "interlace-mode")) + gst_structure_fixate_field_string (structure, "interlace-mode", + "progressive"); return caps; }