From 3bdcdedfa00b87f1db505218789178318a16c743 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 15 Jan 2016 14:00:56 +1100 Subject: [PATCH] glpool: fix caps refcount issue The caps are from an allocation query which are transfer none but were being treated as transfer full. --- gst-libs/gst/gl/gstglbufferpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglbufferpool.c b/gst-libs/gst/gl/gstglbufferpool.c index c419ad5f7f..598425c88b 100644 --- a/gst-libs/gst/gl/gstglbufferpool.c +++ b/gst-libs/gst/gl/gstglbufferpool.c @@ -114,7 +114,7 @@ gst_gl_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config) if (!gst_buffer_pool_config_get_allocator (config, &allocator, &alloc_params)) goto wrong_config; - gst_caps_replace (&priv->caps, caps); + gst_caps_replace (&priv->caps, gst_caps_ref (caps)); if (priv->allocator) gst_object_unref (priv->allocator);