From a2086243543ed1bc754b4643dde4a8fc1b4cd8b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 16 Jan 2016 16:55:42 +0200 Subject: [PATCH] Revert "glpool: fix caps refcount issue" This reverts commit 3bdcdedfa00b87f1db505218789178318a16c743. gst_caps_replace() takes a new reference already, if there is a problem then it is elsewhere. And there are a few problems, see https://bugzilla.gnome.org/show_bug.cgi?id=760696 --- 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 598425c88b..c419ad5f7f 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, gst_caps_ref (caps)); + gst_caps_replace (&priv->caps, caps); if (priv->allocator) gst_object_unref (priv->allocator);