diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index e40af5a942..9b91e06e22 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -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