diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2020-06-25 16:05:39 +0300 |
---|---|---|
committer | Vivia Nikolaidou <vivia@ahiru.eu> | 2020-06-25 16:05:39 +0300 |
commit | 290d0432c3d12d69c43f96a7141b8bf0ae83bf46 (patch) | |
tree | b83c10347eb6faf19c0613ba0dc9a573b54d4867 | |
parent | ed3417219ab6fa5886c52aeb9b525a2076ca1892 (diff) |
interlace: Make caps writable before modifying them
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1373>
-rw-r--r-- | gst/interlace/gstinterlace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c index a0f7fe2a7..6133bd539 100644 --- a/gst/interlace/gstinterlace.c +++ b/gst/interlace/gstinterlace.c @@ -881,6 +881,7 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter) tcaps = gst_pad_get_pad_template_caps (otherpad); othercaps = gst_pad_peer_query_caps (otherpad, clean_filter); + othercaps = gst_caps_make_writable (othercaps); if (othercaps) { if (pattern == GST_INTERLACE_PATTERN_2_2) { for (i = 0; i < gst_caps_get_size (othercaps); ++i) { |