mpdparser: Fix inverted logic introduced in last commit

This commit is contained in:
Sebastian Dröge 2015-06-05 14:30:03 +02:00
parent 7824f4cf52
commit 9bcddde9bc

View file

@ -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;
}