From 7aa597d6df3fa8e53650f335d4c7c9ed28825836 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 3 Mar 2022 14:08:16 +0100 Subject: [PATCH] va: encoder: Fix error code path when open. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvaencoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c b/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c index a07fcef..7731fcc 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c @@ -482,10 +482,10 @@ error: g_clear_pointer (&reconstruct_buffers, g_ptr_array_unref); g_clear_pointer (&recon_pool, gst_object_unref); - if (config == VA_INVALID_ID) + if (config != VA_INVALID_ID) vaDestroyConfig (dpy, config); - if (context == VA_INVALID_ID) + if (context != VA_INVALID_ID) vaDestroyContext (dpy, context); return FALSE; -- 2.7.4