From b27ddd8036b82567ae84f6e4ab225a1332b50b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 24 May 2016 16:22:24 +0200 Subject: [PATCH] plugins: no sinkpad bufferpool when decoder Right now, the decoders create a buffer pool for their sink pad which is not used at all, because the decoders have never proposed it to upstream. This patch avoids the buffer pool instantiating when the element inherits from the GstVideoDecoder class. --- gst/vaapi/gstvaapipluginbase.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c index 90e935c785..66ef97c6ba 100644 --- a/gst/vaapi/gstvaapipluginbase.c +++ b/gst/vaapi/gstvaapipluginbase.c @@ -489,6 +489,10 @@ ensure_sinkpad_buffer_pool (GstVaapiPluginBase * plugin, GstCaps * caps) GstVideoInfo vi; gboolean need_pool; + /* video decoders don't use a buffer pool in the sink pad */ + if (GST_IS_VIDEO_DECODER (plugin)) + return TRUE; + if (!gst_vaapi_plugin_base_ensure_display (plugin)) return FALSE;