mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
dashdemux: remove redundant else statement
Else statement is redundant when the if block finishes with an return.
This commit is contained in:
parent
42a1a95f3e
commit
a01133dd8f
1 changed files with 6 additions and 7 deletions
|
@ -1334,15 +1334,14 @@ gst_dash_demux_stream_fragment_finished (GstAdaptiveDemux * demux,
|
|||
GstDashDemuxStream *dashstream = (GstDashDemuxStream *) stream;
|
||||
|
||||
if (gst_mpd_client_has_isoff_ondemand_profile (dashdemux->client) &&
|
||||
dashstream->sidx_parser.status == GST_ISOFF_SIDX_PARSER_FINISHED) {
|
||||
dashstream->sidx_parser.status == GST_ISOFF_SIDX_PARSER_FINISHED)
|
||||
/* fragment is advanced on data_received when byte limits are reached */
|
||||
return GST_FLOW_OK;
|
||||
} else {
|
||||
if (G_UNLIKELY (stream->downloading_header || stream->downloading_index))
|
||||
return GST_FLOW_OK;
|
||||
return gst_adaptive_demux_stream_advance_fragment (demux, stream,
|
||||
stream->fragment.duration);
|
||||
}
|
||||
if (G_UNLIKELY (stream->downloading_header || stream->downloading_index))
|
||||
return GST_FLOW_OK;
|
||||
|
||||
return gst_adaptive_demux_stream_advance_fragment (demux, stream,
|
||||
stream->fragment.duration);
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
Loading…
Reference in a new issue