Commit 4a1c8e4d authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: added adaptationset to period

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent fedf1dcb
...@@ -42,13 +42,23 @@ Period::~Period () ...@@ -42,13 +42,23 @@ Period::~Period ()
vlc_delete_all( this->groups ); vlc_delete_all( this->groups );
} }
const std::vector<Group*>& Period::getGroups() const const std::vector<Group*>& Period::getGroups() const
{ {
return this->groups; return this->groups;
} }
void Period::addGroup(Group *group) void Period::addGroup(Group *group)
{ {
if ( group != NULL ) if ( group != NULL )
this->groups.push_back(group); 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);
}
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <string> #include <string>
#include "mpd/Group.h" #include "mpd/Group.h"
#include "mpd/AdaptationSet.h"
namespace dash namespace dash
{ {
...@@ -39,11 +40,14 @@ namespace dash ...@@ -39,11 +40,14 @@ namespace dash
Period(); Period();
virtual ~Period (); virtual ~Period ();
const std::vector<Group *>& getGroups() const; const std::vector<Group *>& getGroups () const;
void addGroup( Group *group ); void addGroup (Group *group);
const std::vector<AdaptationSet *>& getAdaptationSets () const;
void addAdaptationSet (AdaptationSet *AdaptationSet);
private: private:
std::vector<Group *> groups; std::vector<Group *> groups;
std::vector<AdaptationSet *> adaptationSets;
}; };
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment