Revert "glpool: fix caps refcount issue"
authorSebastian Dröge <sebastian@centricular.com>
Sat, 16 Jan 2016 14:55:42 +0000 (16:55 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 16 Jan 2016 14:55:42 +0000 (16:55 +0200)
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

index 598425c..c419ad5 100644 (file)
@@ -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);