omxaudiodec: impossible if statement
authorLuis de Bethencourt <luis.bg@samsung.com>
Fri, 6 Mar 2015 10:54:43 +0000 (10:54 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Fri, 6 Mar 2015 10:54:46 +0000 (10:54 +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 it.

CID #1287054

omx/gstomxaudiodec.c

index 6206fa2..44fdf89 100644 (file)
@@ -257,9 +257,6 @@ gst_omx_audio_dec_change_state (GstElement * element, GstStateChange transition)
       break;
   }
 
-  if (ret == GST_STATE_CHANGE_FAILURE)
-    return ret;
-
   ret =
       GST_ELEMENT_CLASS (gst_omx_audio_dec_parent_class)->change_state
       (element, transition);