omxaudioenc: impossible if statement
authorLuis de Bethencourt <luis.bg@samsung.com>
Fri, 6 Mar 2015 10:57:53 +0000 (10:57 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Fri, 6 Mar 2015 10:57:53 +0000 (10:57 +0000)
ret is set to GST_STATE_CHANGE_SUCCESS and never touched, so it is impossible
for it to be anything else at the if check. Remove the if check.

CID #1287053

omx/gstomxaudioenc.c

index 2d7332c..8724f5e 100644 (file)
@@ -245,9 +245,6 @@ gst_omx_audio_enc_change_state (GstElement * element, GstStateChange transition)
       break;
   }
 
-  if (ret == GST_STATE_CHANGE_FAILURE)
-    return ret;
-
   ret =
       GST_ELEMENT_CLASS (gst_omx_audio_enc_parent_class)->change_state (element,
       transition);