From 89531263746c1455b71d25d1dc170918320117fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 21 Nov 2016 19:17:07 +0100 Subject: [PATCH] plugins: don't destroy sink pad allocator Don't destroy sink pad allocator at _set_caps() because it will be done at ensure_sinkpad_buffer_pool() if it is required. --- gst/vaapi/gstvaapipluginbase.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c index a8508a58c0..be75c17a02 100644 --- a/gst/vaapi/gstvaapipluginbase.c +++ b/gst/vaapi/gstvaapipluginbase.c @@ -742,7 +742,6 @@ gst_vaapi_plugin_base_set_caps (GstVaapiPluginBase * plugin, GstCaps * incaps, if (incaps && incaps != plugin->sinkpad_caps) { if (!gst_video_info_from_caps (&plugin->sinkpad_info, incaps)) return FALSE; - g_clear_object (&plugin->sinkpad_allocator); gst_caps_replace (&plugin->sinkpad_caps, incaps); plugin->sinkpad_caps_is_raw = !gst_caps_has_vaapi_surface (incaps); }