mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
plugins: deactivate buffer pool before unref
This buffer pool may still be processing buffers when a caps renegotiation is done. This one-liner patch deactivates the pool to drain it before it de-allocation.
This commit is contained in:
parent
b27ddd8036
commit
2fc855b134
1 changed files with 1 additions and 0 deletions
|
@ -503,6 +503,7 @@ ensure_sinkpad_buffer_pool (GstVaapiPluginBase * plugin, GstCaps * caps)
|
|||
gst_structure_free (config);
|
||||
if (!need_pool)
|
||||
return TRUE;
|
||||
gst_buffer_pool_set_active (plugin->sinkpad_buffer_pool, FALSE);
|
||||
g_clear_object (&plugin->sinkpad_buffer_pool);
|
||||
plugin->sinkpad_buffer_size = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue