From 3184175dae0adfe3a59c38b2fbb8fba5b2a1b27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 16 Jan 2016 17:14:54 +0200 Subject: [PATCH] glfilter: First make caps writable in fixate_caps(), then truncate them Truncating requires writable caps. --- gst-libs/gst/gl/gstglfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 772efd7577..b43d2ac786 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -240,8 +240,8 @@ gst_gl_filter_fixate_caps (GstBaseTransform * bt, GValue fpar = { 0, }, tpar = { 0,}; - othercaps = gst_caps_truncate (othercaps); othercaps = gst_caps_make_writable (othercaps); + othercaps = gst_caps_truncate (othercaps); GST_DEBUG_OBJECT (bt, "trying to fixate othercaps %" GST_PTR_FORMAT " based on caps %" GST_PTR_FORMAT, othercaps, caps);