mpegvideoparse: Pass through interlace-mode field from upstream if available

We generally always prefer the information from upstream for other
metadata (pixel-aspect-ration, etc.) and should also do so here.

Other parsers (h264parse) already do the same.
This commit is contained in:
Sebastian Dröge 2019-06-19 14:13:02 +03:00 committed by Sebastian Dröge
parent 5ed27c12cc
commit 324e55a3cd

View file

@ -978,6 +978,7 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
else
GST_DEBUG_OBJECT (mpvparse, "Invalid level - %u", level_c);
if (!s || !gst_structure_has_field (s, "interlace-mode"))
gst_caps_set_simple (caps, "interlace-mode",
G_TYPE_STRING,
(mpvparse->sequenceext.progressive ? "progressive" : "mixed"), NULL);