]> git.sesse.net Git - vlc/commitdiff
demux: dash: handle Period Id
authorFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 8 Jan 2015 16:46:15 +0000 (17:46 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 12 Jan 2015 19:21:57 +0000 (20:21 +0100)
modules/demux/dash/mpd/IsoffMainParser.cpp
modules/demux/dash/mpd/Period.h

index c1b8d1bdc6cad3ffbde7e7a729f8e88bb382d1b4..f9151a287bb44176d5430f03770e2181e02ea33f 100644 (file)
@@ -99,6 +99,8 @@ void IsoffMainParser::parsePeriods(Node *root)
         parseSegmentInformation(*it, period);
         if((*it)->hasAttribute("start"))
             period->startTime.Set(IsoTime((*it)->getAttributeValue("start")));
+        if((*it)->hasAttribute("id"))
+            period->setId((*it)->getAttributeValue("id"));
         setAdaptationSets(*it, period);
         mpd->addPeriod(period);
     }
index 919d77904c7b0dc6211420cccd31fd1c31ac6ad5..06304dd9df43a2c232b344edfdb82bbda72f84f9 100644 (file)
@@ -39,7 +39,8 @@ namespace dash
     {
         class MPD;
 
-        class Period : public SegmentInformation
+        class Period : public SegmentInformation,
+                       public UniqueNess<Period>
         {
             public:
                 Period(MPD *);