From 41f13f43734d6820406ea57d2dc0a887e360cdcf Mon Sep 17 00:00:00 2001 From: Mengkejiergeli Ba Date: Tue, 12 Dec 2023 15:30:39 +0800 Subject: [PATCH] msdk: Remove dead code Part-of: --- subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontext.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontext.c b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontext.c index 4a62970e4e..f9faa57b48 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontext.c +++ b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontext.c @@ -180,19 +180,13 @@ gst_msdk_context_use_vaapi (GstMsdkContext * context) display_drm = gst_va_display_drm_new_from_path (path); if (!display_drm) { GST_ERROR ("Couldn't create a VA DRM display"); - goto failed; + return FALSE; } g_free (path); priv->display = display_drm; return TRUE; - -failed: - if (display_drm) - gst_object_unref (display_drm); - - return FALSE; } #else static GstD3D11Device *