From a07bc9231991d3f0c8c158cf2f94e198c798f4fc Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Thu, 29 Sep 2016 21:45:50 +0530 Subject: [PATCH] a2dpsink: Drop some dead-code Left over from the last cleanup. CID: 1373418 --- sys/bluez/gsta2dpsink.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) {