vlc | branch: master | Francois Cartegnie <[email protected]> | Tue Jun 9 15:39:44 2015 +0200| [eb92562dfa9458ec37937e9aeb85ada7e092abf3] | committer: Francois Cartegnie
demux: adaptative: add representation codecs > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb92562dfa9458ec37937e9aeb85ada7e092abf3 --- .../demux/adaptative/playlist/BaseRepresentation.cpp | 15 +++++++++++++++ modules/demux/adaptative/playlist/BaseRepresentation.h | 5 +++++ 2 files changed, 20 insertions(+) diff --git a/modules/demux/adaptative/playlist/BaseRepresentation.cpp b/modules/demux/adaptative/playlist/BaseRepresentation.cpp index 5561356..44fc51c 100644 --- a/modules/demux/adaptative/playlist/BaseRepresentation.cpp +++ b/modules/demux/adaptative/playlist/BaseRepresentation.cpp @@ -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; +} diff --git a/modules/demux/adaptative/playlist/BaseRepresentation.h b/modules/demux/adaptative/playlist/BaseRepresentation.h index 819e250..4904560 100644 --- a/modules/demux/adaptative/playlist/BaseRepresentation.h +++ b/modules/demux/adaptative/playlist/BaseRepresentation.h @@ -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; }; } } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
