[vlc-commits] demux: dash: force min update to be non-zero

Francois Cartegnie git at videolan.org
Wed Jun 10 18:58:03 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jun  7 17:59:50 2015 +0200| [0e621a7bec46b3de5cc2ca354f039ae295509fa3] | committer: Francois Cartegnie

demux: dash: force min update to be non-zero

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

 modules/demux/adaptative/playlist/AbstractPlaylist.cpp |    2 +-
 modules/demux/dash/mpd/IsoffMainParser.cpp             |    6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/demux/adaptative/playlist/AbstractPlaylist.cpp b/modules/demux/adaptative/playlist/AbstractPlaylist.cpp
index 9376b19..ae0ca9e 100644
--- a/modules/demux/adaptative/playlist/AbstractPlaylist.cpp
+++ b/modules/demux/adaptative/playlist/AbstractPlaylist.cpp
@@ -40,7 +40,7 @@ AbstractPlaylist::AbstractPlaylist (stream_t *stream_) :
     availabilityStartTime.Set( 0 );
     availabilityEndTime.Set( 0 );
     duration.Set( 0 );
-    minUpdatePeriod.Set( 0 );
+    minUpdatePeriod.Set( 2 );
     maxSegmentDuration.Set( 0 );
     minBufferTime.Set( 0 );
     timeShiftBufferDepth.Set( 0 );
diff --git a/modules/demux/dash/mpd/IsoffMainParser.cpp b/modules/demux/dash/mpd/IsoffMainParser.cpp
index 20a6301..abaae67 100644
--- a/modules/demux/dash/mpd/IsoffMainParser.cpp
+++ b/modules/demux/dash/mpd/IsoffMainParser.cpp
@@ -101,7 +101,11 @@ void    IsoffMainParser::setMPDAttributes   ()
 
     it = attr.find("minimumUpdatePeriod");
     if(it != attr.end())
-        mpd->minUpdatePeriod.Set(IsoTime(it->second));
+    {
+        mtime_t minupdate = IsoTime(it->second);
+        if(minupdate > 0)
+            mpd->minUpdatePeriod.Set(minupdate);
+    }
 
     it = attr.find("maxSegmentDuration");
     if(it != attr.end())



More information about the vlc-commits mailing list