From 2bfef5a4548a1b1f9cd2ec6a0670db6460b47dca Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Thu, 19 Sep 2019 10:56:13 -0700 Subject: [PATCH] libs: encoder: h264_fei: remove dead error condition Found by static analysis. The feipak is always null when we reach the error target. --- gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c index 12c6493eaf..ed392a034e 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c @@ -4535,8 +4535,6 @@ gst_vaapi_encoder_h264_fei_new (GstVaapiDisplay * display) error: if (feienc) g_object_unref (feienc); - if (feipak) - gst_vaapi_mini_object_replace ((GstVaapiMiniObject **) & feipak, NULL); if (feiencoder) g_object_unref (feiencoder);