mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-27 06:20:12 +00:00
bufferpool: free owned discarded pool config
This commit is contained in:
parent
e332862985
commit
f2d81f4c3d
1 changed files with 4 additions and 0 deletions
|
@ -503,6 +503,8 @@ gst_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
|
||||
/* now we are configured */
|
||||
pool->priv->configured = TRUE;
|
||||
} else {
|
||||
gst_structure_free (config);
|
||||
}
|
||||
GST_BUFFER_POOL_UNLOCK (pool);
|
||||
|
||||
|
@ -511,12 +513,14 @@ gst_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
/* ERRORS */
|
||||
was_active:
|
||||
{
|
||||
gst_structure_free (config);
|
||||
GST_WARNING_OBJECT (pool, "can't change config, we are active");
|
||||
GST_BUFFER_POOL_UNLOCK (pool);
|
||||
return FALSE;
|
||||
}
|
||||
have_outstanding:
|
||||
{
|
||||
gst_structure_free (config);
|
||||
GST_WARNING_OBJECT (pool, "can't change config, have outstanding buffers");
|
||||
GST_BUFFER_POOL_UNLOCK (pool);
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue