diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-12-07 19:14:23 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-12-07 19:17:07 +0000 |
commit | c0226e08e324fb416c2bb8eb95bb690152397f84 (patch) | |
tree | d7fbed563ca084c2305c47023a66a7fcacfea928 /gst | |
parent | 80f03b4d15c13d510dab9c9f7f28b590dbe81147 (diff) |
h264parse: make caps writable before modifying them
https://bugzilla.gnome.org/show_bug.cgi?id=790628
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videoparsers/gsth264parse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 85347fc6f..7003caf24 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -2804,8 +2804,10 @@ gst_h264_parse_get_caps (GstBaseParse * parse, GstCaps * filter) } /* Try if we can put the downstream caps first */ - remove_fields (peercaps, FALSE); - tmp = gst_caps_intersect_full (peercaps, res, GST_CAPS_INTERSECT_FIRST); + pcopy = gst_caps_copy (peercaps); + 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)) res = gst_caps_merge (tmp, res); else |