[vlc-commits] demux: dash: handle Period Id
Francois Cartegnie
git at videolan.org
Mon Jan 12 20:22:07 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan 8 17:46:15 2015 +0100| [a013e25aa5d17c527f02b0051c5399f7d8e93705] | committer: Francois Cartegnie
demux: dash: handle Period Id
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a013e25aa5d17c527f02b0051c5399f7d8e93705
---
modules/demux/dash/mpd/IsoffMainParser.cpp | 2 ++
modules/demux/dash/mpd/Period.h | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/dash/mpd/IsoffMainParser.cpp b/modules/demux/dash/mpd/IsoffMainParser.cpp
index c1b8d1b..f9151a2 100644
--- a/modules/demux/dash/mpd/IsoffMainParser.cpp
+++ b/modules/demux/dash/mpd/IsoffMainParser.cpp
@@ -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);
}
diff --git a/modules/demux/dash/mpd/Period.h b/modules/demux/dash/mpd/Period.h
index 919d779..06304dd 100644
--- a/modules/demux/dash/mpd/Period.h
+++ b/modules/demux/dash/mpd/Period.h
@@ -39,7 +39,8 @@ namespace dash
{
class MPD;
- class Period : public SegmentInformation
+ class Period : public SegmentInformation,
+ public UniqueNess<Period>
{
public:
Period(MPD *);
More information about the vlc-commits
mailing list