mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
h264parse: make caps writable before modifying them
https://bugzilla.gnome.org/show_bug.cgi?id=790628
This commit is contained in:
parent
80f03b4d15
commit
c0226e08e3
1 changed files with 4 additions and 2 deletions
|
@ -2804,8 +2804,10 @@ gst_h264_parse_get_caps (GstBaseParse * parse, GstCaps * filter)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try if we can put the downstream caps first */
|
/* Try if we can put the downstream caps first */
|
||||||
remove_fields (peercaps, FALSE);
|
pcopy = gst_caps_copy (peercaps);
|
||||||
tmp = gst_caps_intersect_full (peercaps, res, GST_CAPS_INTERSECT_FIRST);
|
remove_fields (pcopy, FALSE);
|
||||||
|
tmp = gst_caps_intersect_full (pcopy, res, GST_CAPS_INTERSECT_FIRST);
|
||||||
|
gst_caps_unref (pcopy);
|
||||||
if (!gst_caps_is_empty (tmp))
|
if (!gst_caps_is_empty (tmp))
|
||||||
res = gst_caps_merge (tmp, res);
|
res = gst_caps_merge (tmp, res);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue