mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
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:
parent
5ed27c12cc
commit
324e55a3cd
1 changed files with 4 additions and 3 deletions
|
@ -978,9 +978,10 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
|
||||||
else
|
else
|
||||||
GST_DEBUG_OBJECT (mpvparse, "Invalid level - %u", level_c);
|
GST_DEBUG_OBJECT (mpvparse, "Invalid level - %u", level_c);
|
||||||
|
|
||||||
gst_caps_set_simple (caps, "interlace-mode",
|
if (!s || !gst_structure_has_field (s, "interlace-mode"))
|
||||||
G_TYPE_STRING,
|
gst_caps_set_simple (caps, "interlace-mode",
|
||||||
(mpvparse->sequenceext.progressive ? "progressive" : "mixed"), NULL);
|
G_TYPE_STRING,
|
||||||
|
(mpvparse->sequenceext.progressive ? "progressive" : "mixed"), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (mpvparse), caps);
|
gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (mpvparse), caps);
|
||||||
|
|
Loading…
Reference in a new issue