From 9bcddde9bcd36dc097d49111d825a38192988fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 5 Jun 2015 14:30:03 +0200 Subject: [PATCH] mpdparser: Fix inverted logic introduced in last commit --- ext/dash/gstmpdparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 885d7a30c0..4a66e163c4 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -4104,8 +4104,8 @@ gst_mpd_client_get_next_fragment_duration (GstMpdClient * client, g_return_val_if_fail (stream->cur_seg_template->MultSegBaseType-> SegmentTimeline == NULL, 0); - if (GST_CLOCK_TIME_IS_VALID (duration) || (segments_count > 0 - && seg_idx >= segments_count)) + if (GST_CLOCK_TIME_IS_VALID (duration) || segments_count == 0 + || seg_idx < segments_count) return duration; return 0; }