From 8759014f4ced67d72ab2f0f65679af0e57272587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 30 Mar 2022 12:12:34 +0200 Subject: [PATCH] va: encoder: Remove unused allocation config. Since it's also done inside of gst_va_pool_new_with_config(). Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvaencoder.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c b/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c index 8067ff33b9..b502f297b3 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c @@ -320,12 +320,6 @@ _create_reconstruct_pool (GstVaDisplay * display, GArray * surface_formats, allocator = gst_va_allocator_new (display, surface_formats); - if (!gst_va_allocator_set_format (allocator, &info, usage_hint)) { - gst_clear_object (&allocator); - gst_clear_caps (&caps); - return NULL; - } - gst_allocation_params_init (¶ms); pool = gst_va_pool_new_with_config (caps, size, 0, max_buffers, usage_hint,