From 290d0432c3d12d69c43f96a7141b8bf0ae83bf46 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Thu, 25 Jun 2020 16:05:39 +0300 Subject: [PATCH] interlace: Make caps writable before modifying them Part-of: --- gst/interlace/gstinterlace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c index a0f7fe2..6133bd5 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) { -- 2.7.4