Commit 5299df74 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dash: Use a const Representation to extract segments.

parent f9d613c5
......@@ -40,7 +40,7 @@ BasicCMManager::~BasicCMManager ()
delete this->mpd;
}
std::vector<Segment*> BasicCMManager::getSegments( Representation *rep )
std::vector<Segment*> BasicCMManager::getSegments( const Representation *rep )
{
std::vector<Segment *> retSegments;
SegmentInfo* info = rep->getSegmentInfo();
......@@ -134,3 +134,4 @@ const MPD* BasicCMManager::getMPD() const
{
return this->mpd;
}
......@@ -51,7 +51,7 @@ namespace dash
Period* getFirstPeriod();
Period* getNextPeriod( Period *period );
Representation* getBestRepresentation( Period *period );
std::vector<Segment *> getSegments( Representation *rep );
std::vector<Segment *> getSegments( const Representation *rep );
Representation* getRepresentation( Period *period, int bitrate );
const MPD* getMPD() const;
......
......@@ -49,7 +49,7 @@ namespace dash
virtual Period* getFirstPeriod () = 0;
virtual Period* getNextPeriod (Period *period) = 0;
virtual Representation* getBestRepresentation (Period *period) = 0;
virtual std::vector<Segment *> getSegments(Representation *rep ) = 0;
virtual std::vector<Segment *> getSegments( const Representation *rep ) = 0;
virtual Representation* getRepresentation (Period *period, int bitrate) = 0;
virtual const MPD* getMPD () const = 0;
virtual ~IMPDManager(){}
......
......@@ -39,7 +39,7 @@ IsoffMainManager::~IsoffMainManager ()
delete this->mpd;
}
std::vector<Segment*> IsoffMainManager::getSegments (Representation *rep)
std::vector<Segment*> IsoffMainManager::getSegments (const Representation *rep)
{
std::vector<Segment *> retSegments;
SegmentList* list= rep->getSegmentList();
......
......@@ -51,7 +51,7 @@ namespace dash
Period* getFirstPeriod ();
Period* getNextPeriod (Period *period);
Representation* getBestRepresentation (Period *period);
std::vector<Segment *> getSegments (Representation *rep);
std::vector<Segment *> getSegments (const Representation *rep);
Representation* getRepresentation (Period *period, int bitrate);
const MPD* getMPD () 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