[vlc-commits] demux: adaptive: fix segmentlist default duration
Francois Cartegnie
git at videolan.org
Mon Dec 28 09:53:22 UTC 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 21 19:53:35 2020 +0100| [b3e43b51f6d7134a74cbbfc039e095954b1d0b1b] | committer: Francois Cartegnie
demux: adaptive: fix segmentlist default duration
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b3e43b51f6d7134a74cbbfc039e095954b1d0b1b
---
modules/demux/adaptive/playlist/SegmentList.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/adaptive/playlist/SegmentList.cpp b/modules/demux/adaptive/playlist/SegmentList.cpp
index 4409b50011..fbf47e002e 100644
--- a/modules/demux/adaptive/playlist/SegmentList.cpp
+++ b/modules/demux/adaptive/playlist/SegmentList.cpp
@@ -167,7 +167,8 @@ bool SegmentList::getPlaybackTimeDurationBySegmentNumber(uint64_t number,
}
else
{
- *time = *dur = VLC_TICK_INVALID;
+ *time = VLC_TICK_INVALID;
+ *dur = 0;
timescale = inheritTimescale();
if(segments.empty())
@@ -205,7 +206,7 @@ bool SegmentList::getPlaybackTimeDurationBySegmentNumber(uint64_t number,
}
*time = VLC_TICK_0 + timescale.ToTime(stime);
- *dur = VLC_TICK_0 + timescale.ToTime(sduration);
+ *dur = timescale.ToTime(sduration);
return true;
}
More information about the vlc-commits
mailing list