mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-11 16:55:23 +00:00
playsink: remove redundant else statements
This commit is contained in:
parent
b636fe29f3
commit
33b9535d97
1 changed files with 4 additions and 7 deletions
|
@ -4364,15 +4364,12 @@ gst_play_sink_request_pad (GstPlaySink * playsink, GstPlaySinkType type)
|
||||||
"tee"), (NULL));
|
"tee"), (NULL));
|
||||||
res = NULL;
|
res = NULL;
|
||||||
break;
|
break;
|
||||||
} else {
|
}
|
||||||
playsink->audio_tee_sink =
|
playsink->audio_tee_sink =
|
||||||
gst_element_get_static_pad (playsink->audio_tee, "sink");
|
gst_element_get_static_pad (playsink->audio_tee, "sink");
|
||||||
gst_bin_add (GST_BIN_CAST (playsink), playsink->audio_tee);
|
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);
|
gst_element_set_state (playsink->audio_tee, GST_STATE_PAUSED);
|
||||||
}
|
|
||||||
if (!playsink->audio_pad) {
|
if (!playsink->audio_pad) {
|
||||||
GST_LOG_OBJECT (playsink, "ghosting tee sinkpad");
|
GST_LOG_OBJECT (playsink, "ghosting tee sinkpad");
|
||||||
playsink->audio_pad =
|
playsink->audio_pad =
|
||||||
|
|
Loading…
Reference in a new issue