glpool: fix caps refcount issue

The caps are from an allocation query which are transfer none but were being
treated as transfer full.
This commit is contained in:
Matthew Waters 2016-01-15 14:00:56 +11:00 committed by Tim-Philipp Müller
parent 575974aeaf
commit 06d8000708

View 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, caps);
gst_caps_replace (&priv->caps, gst_caps_ref (caps));
if (priv->allocator)
gst_object_unref (priv->allocator);