[vlc-commits] demux: adaptive: add pts-delay to maxbuffering for segment startnumber computation

Francois Cartegnie git at videolan.org
Wed Feb 1 16:11:28 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb  1 14:00:29 2017 +0100| [579db8b87e73c9e6aad1743a43fb5daa155812ab] | committer: Francois Cartegnie

demux: adaptive: add pts-delay to maxbuffering for segment startnumber computation

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=579db8b87e73c9e6aad1743a43fb5daa155812ab
---

 modules/demux/adaptive/playlist/SegmentInformation.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/playlist/SegmentInformation.cpp b/modules/demux/adaptive/playlist/SegmentInformation.cpp
index 10ccc7e..6bf5873 100644
--- a/modules/demux/adaptive/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptive/playlist/SegmentInformation.cpp
@@ -164,7 +164,8 @@ std::size_t SegmentInformation::getAllSegments(std::vector<ISegment *> &retSegme
 
 uint64_t SegmentInformation::getLiveStartSegmentNumber(uint64_t def) const
 {
-    const mtime_t i_max_buffering = getPlaylist()->getMaxBuffering();
+    const mtime_t i_max_buffering = getPlaylist()->getMaxBuffering() +
+                                    /* FIXME: add dynamic pts-delay */ CLOCK_FREQ;
 
     if( mediaSegmentTemplate )
     {



More information about the vlc-commits mailing list