summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-06-05 14:30:03 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-06-05 14:33:57 +0200
commit9bcddde9bcd36dc097d49111d825a38192988fbd (patch)
tree621985539dc26f3f19ee321cb0e36616ebf58ef9
parent7824f4cf52dbc6221022edec2ed7402de72c993e (diff)
mpdparser: Fix inverted logic introduced in last commit
-rw-r--r--ext/dash/gstmpdparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index 885d7a30c..4a66e163c 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;
}