[vlc-commits] demux: dash: only refresh Live MPD on minUpdatePeriod

Francois Cartegnie git at videolan.org
Wed Jan 23 12:23:59 CET 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 23 12:03:05 2019 +0100| [7256300850b8dbe6c6e00ad4566b75846ea3e3cd] | committer: Francois Cartegnie

demux: dash: only refresh Live MPD on minUpdatePeriod

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

 modules/demux/dash/mpd/IsoffMainParser.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/dash/mpd/IsoffMainParser.cpp b/modules/demux/dash/mpd/IsoffMainParser.cpp
index 368a8aa583..a86d10afd7 100644
--- a/modules/demux/dash/mpd/IsoffMainParser.cpp
+++ b/modules/demux/dash/mpd/IsoffMainParser.cpp
@@ -104,10 +104,12 @@ void    IsoffMainParser::parseMPDAttributes   (MPD *mpd, xml::Node *node)
     it = attr.find("minimumUpdatePeriod");
     if(it != attr.end())
     {
+        mpd->b_needsUpdates = true;
         vlc_tick_t minupdate = IsoTime(it->second);
         if(minupdate > 0)
             mpd->minUpdatePeriod.Set(minupdate);
     }
+    else mpd->b_needsUpdates = false;
 
     it = attr.find("maxSegmentDuration");
     if(it != attr.end())



More information about the vlc-commits mailing list