mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
eb7ac03a91
commit
3bdcdedfa0
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
if (!gst_buffer_pool_config_get_allocator (config, &allocator, &alloc_params))
|
||||||
goto wrong_config;
|
goto wrong_config;
|
||||||
|
|
||||||
gst_caps_replace (&priv->caps, caps);
|
gst_caps_replace (&priv->caps, gst_caps_ref (caps));
|
||||||
|
|
||||||
if (priv->allocator)
|
if (priv->allocator)
|
||||||
gst_object_unref (priv->allocator);
|
gst_object_unref (priv->allocator);
|
||||||
|
|
Loading…
Reference in a new issue