[vlc-commits] demux: dash: parse maxSegmentDuration & minUpdatePeriod

Francois Cartegnie git at videolan.org
Mon Jan 12 20:22:08 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Jan 10 21:32:29 2015 +0100| [4f6a2a577d45cec04a2e5ba729f0bda9393f6df1] | committer: Francois Cartegnie

demux: dash: parse maxSegmentDuration & minUpdatePeriod

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

 modules/demux/dash/mpd/IsoffMainParser.cpp |    8 ++++++++
 modules/demux/dash/mpd/MPD.cpp             |    1 +
 modules/demux/dash/mpd/MPD.h               |    1 +
 3 files changed, 10 insertions(+)

diff --git a/modules/demux/dash/mpd/IsoffMainParser.cpp b/modules/demux/dash/mpd/IsoffMainParser.cpp
index f9151a2..5a12079 100644
--- a/modules/demux/dash/mpd/IsoffMainParser.cpp
+++ b/modules/demux/dash/mpd/IsoffMainParser.cpp
@@ -73,6 +73,14 @@ void    IsoffMainParser::setMPDAttributes   ()
     if(it != attr.end())
         this->mpd->minBufferTime.Set(IsoTime(it->second));
 
+    it = attr.find("minimumUpdatePeriod");
+    if(it != attr.end())
+        mpd->minUpdatePeriod.Set(IsoTime(it->second));
+
+    it = attr.find("maxSegmentDuration");
+    if(it != attr.end())
+        mpd->maxSegmentDuration.Set(IsoTime(it->second));
+
     it = attr.find("type");
     if(it != attr.end())
         mpd->setType(it->second);
diff --git a/modules/demux/dash/mpd/MPD.cpp b/modules/demux/dash/mpd/MPD.cpp
index 21d5159..7baea47 100644
--- a/modules/demux/dash/mpd/MPD.cpp
+++ b/modules/demux/dash/mpd/MPD.cpp
@@ -44,6 +44,7 @@ MPD::MPD (stream_t *stream_, Profile profile_) :
     availabilityEndTime.Set( 0 );
     duration.Set( 0 );
     minUpdatePeriod.Set( 0 );
+    maxSegmentDuration.Set( 0 );
     minBufferTime.Set( 0 );
     timeShiftBufferDepth.Set( 0 );
     programInfo.Set( NULL );
diff --git a/modules/demux/dash/mpd/MPD.h b/modules/demux/dash/mpd/MPD.h
index 0f9eb02..8e3e8bd 100644
--- a/modules/demux/dash/mpd/MPD.h
+++ b/modules/demux/dash/mpd/MPD.h
@@ -67,6 +67,7 @@ namespace dash
                 Property<time_t>                    availabilityEndTime;
                 Property<time_t>                    availabilityStartTime;
                 Property<time_t>                    minUpdatePeriod;
+                Property<time_t>                    maxSegmentDuration;
                 Property<time_t>                    minBufferTime;
                 Property<time_t>                    timeShiftBufferDepth;
                 Property<ProgramInformation *>      programInfo;



More information about the vlc-commits mailing list