Commit eb92562d authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: adaptative: add representation codecs

parent 11ab2cdc
......@@ -54,6 +54,16 @@ void BaseRepresentation::setBandwidth( uint64_t bandwidth )
this->bandwidth = bandwidth;
}
const std::list<std::string> & BaseRepresentation::getCodecs() const
{
return codecs;
}
void BaseRepresentation::addCodec(const std::string &codec)
{
codecs.push_back(codec);
}
void BaseRepresentation::debug(vlc_object_t *obj, int indent) const
{
std::string text(indent, ' ');
......@@ -71,3 +81,8 @@ std::string BaseRepresentation::contextualize(size_t, const std::string &compone
{
return component;
}
bool BaseRepresentation::validateCodec(const std::string &) const
{
return true;
}
......@@ -26,6 +26,7 @@
#define BASEREPRESENTATION_H_
#include <string>
#include <list>
#include "CommonAttributesElements.h"
#include "SegmentInformation.hpp"
......@@ -53,6 +54,8 @@ namespace adaptative
*/
uint64_t getBandwidth () const;
void setBandwidth ( uint64_t bandwidth );
const std::list<std::string> & getCodecs () const;
void addCodec (const std::string &);
void debug (vlc_object_t *,int = 0) const;
......@@ -61,8 +64,10 @@ namespace adaptative
const BaseSegmentTemplate *) const;
protected:
virtual bool validateCodec(const std::string &) const;
BaseAdaptationSet *adaptationSet;
uint64_t bandwidth;
std::list<std::string> codecs;
};
}
}
......
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