From 964cb549bb55bb385a77613fa384b990a25cbfe2 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Fri, 6 Mar 2015 10:54:43 +0000 Subject: [PATCH] omxaudiodec: 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 it. CID #1287054 --- omx/gstomxaudiodec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/omx/gstomxaudiodec.c b/omx/gstomxaudiodec.c index 6206fa2..44fdf89 100644 --- a/omx/gstomxaudiodec.c +++ b/omx/gstomxaudiodec.c @@ -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); -- 2.7.4