[vlc-commits] adaptive: dash: ensure start number allows minbuffering

Francois Cartegnie git at videolan.org
Fri Jan 13 15:28:04 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 13 14:26:47 2017 +0100| [9046df8525b8a15e9f11fc0b6314b08814ad91a4] | committer: Francois Cartegnie

adaptive: dash: ensure start number allows minbuffering

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

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

diff --git a/modules/demux/adaptive/playlist/SegmentInformation.cpp b/modules/demux/adaptive/playlist/SegmentInformation.cpp
index 0fdac94..d55c199 100644
--- a/modules/demux/adaptive/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptive/playlist/SegmentInformation.cpp
@@ -197,6 +197,9 @@ uint64_t SegmentInformation::getLiveStartSegmentNumber(uint64_t def) const
             if( i_delay == 0 || i_delay > getPlaylist()->timeShiftBufferDepth.Get() )
                  i_delay = getPlaylist()->timeShiftBufferDepth.Get();
 
+            if( i_delay < getPlaylist()->getMinBuffering() )
+                i_delay = getPlaylist()->getMinBuffering();
+
             const uint64_t startnumber = mediaSegmentTemplate->startNumber.Get();
             end = mediaSegmentTemplate->getCurrentLiveTemplateNumber();
 



More information about the vlc-commits mailing list