mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-09 19:09:41 +00:00
plugins: remove sink pad allocator if caps change
If the negotiated sinkpad caps change, destroy the assignated allocator, because it is not valid anymore.
This commit is contained in:
parent
0541ef4510
commit
01b5ed3edb
1 changed files with 1 additions and 0 deletions
|
@ -616,6 +616,7 @@ ensure_sinkpad_buffer_pool (GstVaapiPluginBase * plugin, GstCaps * caps)
|
|||
return TRUE;
|
||||
gst_buffer_pool_set_active (plugin->sinkpad_buffer_pool, FALSE);
|
||||
g_clear_object (&plugin->sinkpad_buffer_pool);
|
||||
g_clear_object (&plugin->sinkpad_allocator);
|
||||
plugin->sinkpad_buffer_size = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue