omxaudioenc: impossible if statement

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
This commit is contained in:
Luis de Bethencourt 2015-03-06 10:57:53 +00:00
parent 964cb549bb
commit 3aa008adb7

View file

@ -245,9 +245,6 @@ gst_omx_audio_enc_change_state (GstElement * element, GstStateChange transition)
break; break;
} }
if (ret == GST_STATE_CHANGE_FAILURE)
return ret;
ret = ret =
GST_ELEMENT_CLASS (gst_omx_audio_enc_parent_class)->change_state (element, GST_ELEMENT_CLASS (gst_omx_audio_enc_parent_class)->change_state (element,
transition); transition);