From 6e72f45a8f69e55db19fc11cb9a46df31b7eb162 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Mon, 26 Oct 2020 01:22:12 +0800 Subject: [PATCH] va: basedec: No need to call base class' decide_allocation(). We have already done the jobs in gst_va_base_dec_decide_allocation() and no need to call base class' decide_allocation() again. The base class' decide_allocation() will set_format() again and let use do the image/surface testing again, which is low performance and no needed. Part-of: --- sys/va/gstvabasedec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/va/gstvabasedec.c b/sys/va/gstvabasedec.c index e544c3b0f4..87aa8f5bce 100644 --- a/sys/va/gstvabasedec.c +++ b/sys/va/gstvabasedec.c @@ -334,8 +334,7 @@ gst_va_base_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query) gst_object_unref (allocator); gst_object_unref (pool); - return GST_VIDEO_DECODER_CLASS (parent_class)->decide_allocation (decoder, - query); + return TRUE; wrong_caps: {