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
@ -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…
x
Reference in New Issue
Block a user