[vlc-devel] [PATCH 07/17] dash: added adaptationset to period

Christopher at mailsrv.uni-klu.ac.at Christopher at mailsrv.uni-klu.ac.at
Mon Jan 30 14:48:25 CET 2012


From: Christopher Mueller <christopher.mueller at itec.aau.at>

---
 modules/stream_filter/dash/mpd/Period.cpp |   14 ++++++++++++--
 modules/stream_filter/dash/mpd/Period.h   |   10 +++++++---
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/modules/stream_filter/dash/mpd/Period.cpp b/modules/stream_filter/dash/mpd/Period.cpp
index 6d94474..b22bee7 100644
--- a/modules/stream_filter/dash/mpd/Period.cpp
+++ b/modules/stream_filter/dash/mpd/Period.cpp
@@ -42,13 +42,23 @@ Period::~Period ()
     vlc_delete_all( this->groups );
 }
 
-const std::vector<Group*>&      Period::getGroups() const
+const std::vector<Group*>&          Period::getGroups() const
 {
     return this->groups;
 }
 
-void                Period::addGroup(Group *group)
+void                                Period::addGroup(Group *group)
 {
     if ( group != NULL )
         this->groups.push_back(group);
 }
+const std::vector<AdaptationSet*>&  Period::getAdaptationSets() const
+{
+    return this->adaptationSets;
+}
+
+void                                Period::addAdaptationSet(AdaptationSet *adaptationSet)
+{
+    if ( adaptationSet != NULL )
+        this->adaptationSets.push_back(adaptationSet);
+}
diff --git a/modules/stream_filter/dash/mpd/Period.h b/modules/stream_filter/dash/mpd/Period.h
index 469f1f1..46a678a 100644
--- a/modules/stream_filter/dash/mpd/Period.h
+++ b/modules/stream_filter/dash/mpd/Period.h
@@ -28,6 +28,7 @@
 #include <string>
 
 #include "mpd/Group.h"
+#include "mpd/AdaptationSet.h"
 
 namespace dash
 {
@@ -39,11 +40,14 @@ namespace dash
                 Period();
                 virtual ~Period ();
 
-                const std::vector<Group *>&     getGroups() const;
-                void                            addGroup( Group *group );
+                const std::vector<Group *>&         getGroups           () const;
+                void                                addGroup            (Group *group);
+                const std::vector<AdaptationSet *>& getAdaptationSets   () const;
+                void                                addAdaptationSet    (AdaptationSet *AdaptationSet);
 
             private:
-                std::vector<Group *>                groups;
+                std::vector<Group *>            groups;
+                std::vector<AdaptationSet *>    adaptationSets;
         };
     }
 }
-- 
1.7.0.4




More information about the vlc-devel mailing list