Commit c8be3492 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: add missing adaptationSet by ID

parent 24a7a079
......@@ -82,6 +82,17 @@ void BasePeriod::addAdaptationSet(BaseAdaptationSet *adaptationSet)
}
}
BaseAdaptationSet *BasePeriod::getAdaptationSetByID(const ID &id)
{
std::vector<BaseAdaptationSet*>::const_iterator it;
for(it = adaptationSets.begin(); it!= adaptationSets.end(); ++it)
{
if( (*it)->getID() == id )
return *it;
}
return NULL;
}
BaseAdaptationSet * BasePeriod::getAdaptationSet(adaptative::StreamType type) const
{
std::vector<BaseAdaptationSet *>::const_iterator it;
......
......@@ -43,6 +43,7 @@ namespace adaptative
const std::vector<BaseAdaptationSet *>& getAdaptationSets () const;
const std::vector<BaseAdaptationSet *> getAdaptationSets (StreamType) const;
BaseAdaptationSet * getAdaptationSetByID(const ID &);
BaseAdaptationSet * getAdaptationSet (StreamType) const;
void addAdaptationSet (BaseAdaptationSet *AdaptationSet);
void debug (vlc_object_t *,int = 0) const;
......
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