diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 879ef6bd2a..c331fdd179 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3977,14 +3977,10 @@ gst_mpd_client_advance_segment (GstMpdClient * client, GstActiveStream * stream, } if (stream->segments == NULL) { - if (stream->segment_index < 0) { + if (stream->segment_index < 0) stream->segment_index = 0; - } else { + else stream->segment_index++; - if (segments_count > 0 && stream->segment_index >= segments_count) { - ret = GST_FLOW_EOS; - } - } goto done; } @@ -4021,10 +4017,6 @@ gst_mpd_client_advance_segment (GstMpdClient * client, GstActiveStream * stream, if (stream->segment_repeat_index >= segment->repeat) { stream->segment_repeat_index = 0; stream->segment_index++; - if (segments_count > 0 && stream->segment_index >= segments_count) { - ret = GST_FLOW_EOS; - goto done; - } } else { stream->segment_repeat_index++; } @@ -4032,7 +4024,6 @@ gst_mpd_client_advance_segment (GstMpdClient * client, GstActiveStream * stream, if (stream->segment_repeat_index == 0) { stream->segment_index--; if (stream->segment_index < 0) { - ret = GST_FLOW_EOS; goto done; }