diff options
author | Lim Siew Hoon <siew.hoon.lim@intel.com> | 2020-12-10 15:37:14 +0800 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-12-14 09:57:30 +0000 |
commit | 50df74ce6004add53f6537f95c69fc52eef3653f (patch) | |
tree | f5c800629087dc32ccc41c10fc9fe95f7639d346 /gst | |
parent | 670eab65f2a10fa7710520a5176478860171ef78 (diff) | |
download | gstreamer-plugins-bad-50df74ce6004add53f6537f95c69fc52eef3653f.tar.gz |
intervideosrc: fix negotiation of interlaced caps
In 1.0 the field in caps is called "interlace-mode", not "interlaced".
Fixes #1480
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1878>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/inter/gstintervideosrc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/inter/gstintervideosrc.c b/gst/inter/gstintervideosrc.c index 7858e6ede..9e607f336 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; } |