From 33b9535d97284381b3b549ce9a46f1133751716e Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Fri, 13 Mar 2015 18:07:12 +0000 Subject: [PATCH] playsink: remove redundant else statements --- gst/playback/gstplaysink.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index e093093d87..62dc5fbf30 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -4364,15 +4364,12 @@ gst_play_sink_request_pad (GstPlaySink * playsink, GstPlaySinkType type) "tee"), (NULL)); res = NULL; break; - } else { - playsink->audio_tee_sink = - gst_element_get_static_pad (playsink->audio_tee, "sink"); - gst_bin_add (GST_BIN_CAST (playsink), playsink->audio_tee); - gst_element_set_state (playsink->audio_tee, GST_STATE_PAUSED); } - } else { - gst_element_set_state (playsink->audio_tee, GST_STATE_PAUSED); + playsink->audio_tee_sink = + gst_element_get_static_pad (playsink->audio_tee, "sink"); + gst_bin_add (GST_BIN_CAST (playsink), playsink->audio_tee); } + gst_element_set_state (playsink->audio_tee, GST_STATE_PAUSED); if (!playsink->audio_pad) { GST_LOG_OBJECT (playsink, "ghosting tee sinkpad"); playsink->audio_pad =