diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-06-05 14:30:03 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-06-05 14:33:57 +0200 |
commit | 9bcddde9bcd36dc097d49111d825a38192988fbd (patch) | |
tree | 621985539dc26f3f19ee321cb0e36616ebf58ef9 /ext | |
parent | 7824f4cf52dbc6221022edec2ed7402de72c993e (diff) | |
download | gstreamer-plugins-bad-9bcddde9bcd36dc097d49111d825a38192988fbd.tar.gz |
mpdparser: Fix inverted logic introduced in last commit
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dash/gstmpdparser.c | 4 |
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; } |