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 ()
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);
}
......@@ -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;
};
}
}
......
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