[vlc-commits] dash: added adaptationset to period
Christopher Mueller
git at videolan.org
Thu Feb 2 12:33:24 CET 2012
vlc | branch: master | Christopher Mueller <christopher.mueller at itec.aau.at> | Mon Jan 30 14:48:25 2012 +0100| [4a1c8e4dc40e8f9bb6a4a182b8dcb0c6ba699c33] | committer: Hugo Beauzée-Luyssen
dash: added adaptationset to period
Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a1c8e4dc40e8f9bb6a4a182b8dcb0c6ba699c33
---
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;
};
}
}
More information about the vlc-commits
mailing list