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/1869>
This commit is contained in:
Lim Siew Hoon 2020-12-10 15:37:14 +08:00 committed by GStreamer Merge Bot
parent 2a5d564de3
commit 3ce1086b14

View file

@ -498,8 +498,9 @@ gst_inter_video_src_fixate (GstBaseSrc * src, GstCaps * caps)
if (gst_structure_has_field (structure, "chroma-site")) if (gst_structure_has_field (structure, "chroma-site"))
gst_structure_fixate_field_string (structure, "chroma-site", "mpeg2"); gst_structure_fixate_field_string (structure, "chroma-site", "mpeg2");
if (gst_structure_has_field (structure, "interlaced")) if (gst_structure_has_field (structure, "interlace-mode"))
gst_structure_fixate_field_boolean (structure, "interlaced", FALSE); gst_structure_fixate_field_string (structure, "interlace-mode",
"progressive");
return caps; return caps;
} }