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.
This commit is contained in:
Víctor Manuel Jáquez Leal 2016-11-21 19:17:07 +01:00
parent ec364858b1
commit 8953126374

View file

@ -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);
}