mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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.
This commit is contained in:
parent
c9f6006865
commit
b27ddd8036
1 changed files with 4 additions and 0 deletions
|
@ -489,6 +489,10 @@ ensure_sinkpad_buffer_pool (GstVaapiPluginBase * plugin, GstCaps * caps)
|
||||||
GstVideoInfo vi;
|
GstVideoInfo vi;
|
||||||
gboolean need_pool;
|
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))
|
if (!gst_vaapi_plugin_base_ensure_display (plugin))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue