diff --git a/sys/bluez/gsta2dpsink.c b/sys/bluez/gsta2dpsink.c index b0fbb34bba..6a2b50c351 100644 --- a/sys/bluez/gsta2dpsink.c +++ b/sys/bluez/gsta2dpsink.c @@ -222,7 +222,7 @@ gst_a2dp_sink_remove_dynamic_elements (GstA2dpSink * self) static GstStateChangeReturn gst_a2dp_sink_change_state (GstElement * element, GstStateChange transition) { - GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS; + GstStateChangeReturn ret; GstA2dpSink *self = GST_A2DP_SINK (element); switch (transition) { @@ -246,9 +246,6 @@ gst_a2dp_sink_change_state (GstElement * element, GstStateChange transition) break; } - if (ret == GST_STATE_CHANGE_FAILURE) - return ret; - ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); switch (transition) {