[vlc-commits] demux: dash: add missing period duration parsing

Francois Cartegnie git at videolan.org
Mon Feb 23 23:55:15 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Feb 23 23:34:19 2015 +0100| [6894028ea964ef88cb79a1d1eb5c124301291ce5] | committer: Francois Cartegnie

demux: dash: add missing period duration parsing

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

 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 2e7a45c..17708db 100644
--- a/modules/demux/dash/mpd/IsoffMainParser.cpp
+++ b/modules/demux/dash/mpd/IsoffMainParser.cpp
@@ -107,6 +107,8 @@ void IsoffMainParser::parsePeriods(Node *root)
         parseSegmentInformation(*it, period);
         if((*it)->hasAttribute("start"))
             period->startTime.Set(IsoTime((*it)->getAttributeValue("start")));
+        if((*it)->hasAttribute("duration"))
+            period->duration.Set(IsoTime((*it)->getAttributeValue("duration")));
         if((*it)->hasAttribute("id"))
             period->setId((*it)->getAttributeValue("id"));
         setAdaptationSets(*it, period);



More information about the vlc-commits mailing list