]> git.sesse.net Git - vlc/commitdiff
dash: added adaptationset to period
authorChristopher Mueller <christopher.mueller@itec.aau.at>
Mon, 30 Jan 2012 13:48:25 +0000 (14:48 +0100)
committerHugo Beauzée-Luyssen <beauze.h@gmail.com>
Thu, 2 Feb 2012 11:27:27 +0000 (12:27 +0100)
Signed-off-by: Hugo Beauzée-Luyssen <beauze.h@gmail.com>
modules/stream_filter/dash/mpd/Period.cpp
modules/stream_filter/dash/mpd/Period.h

index 6d9447458e7d43e3342fe349bcce317fb7cbe878..b22bee7e86befa4b1662b037b7af7f1fbbc4f9d7 100644 (file)
@@ -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);
+}
index 469f1f1702f805db29caefe38766d6748ce9834e..46a678a33a66df715ae8d4fab2f4fd213a2378e8 100644 (file)
@@ -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;
         };
     }
 }