libs: encoder: h264_fei: remove dead error condition
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 19 Sep 2019 17:56:13 +0000 (10:56 -0700)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 19 Sep 2019 17:56:57 +0000 (10:56 -0700)
Found by static analysis.  The feipak is always null
when we reach the error target.

gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c

index 12c6493..ed392a0 100644 (file)
@@ -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);