From 01b5ed3edbab7bfad8d1c6464051799bc07a85ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 19 Jul 2016 19:27:27 +0200 Subject: [PATCH] plugins: remove sink pad allocator if caps change If the negotiated sinkpad caps change, destroy the assignated allocator, because it is not valid anymore. --- gst/vaapi/gstvaapipluginbase.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c index 54fc403229..f41d39a450 100644 --- a/gst/vaapi/gstvaapipluginbase.c +++ b/gst/vaapi/gstvaapipluginbase.c @@ -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; }