vlc | branch: master | Francois Cartegnie <fcvlc...@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();
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to