mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
mpdparser: Fix inverted logic introduced in last commit
This commit is contained in:
parent
7824f4cf52
commit
9bcddde9bc
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue