Commit 466e3f44 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dash: Allow bps methods to be called from a IAdaptationLogic*

This is the interface we use in the module file.
parent 4e185356
......@@ -47,11 +47,11 @@ void AbstractAdaptationLogic::downloadRateChanged (long bpsAvg, long bpsLastC
this->bpsAvg = bpsAvg;
this->bpsLastChunk = bpsLastChunk;
}
long AbstractAdaptationLogic::getBpsAvg ()
long AbstractAdaptationLogic::getBpsAvg () const
{
return this->bpsAvg;
}
long AbstractAdaptationLogic::getBpsLastChunk ()
long AbstractAdaptationLogic::getBpsLastChunk () const
{
return this->bpsLastChunk;
}
......@@ -47,8 +47,8 @@ namespace dash
virtual void downloadRateChanged (long bpsAvg, long bpsLastChunk);
long getBpsAvg ();
long getBpsLastChunk ();
long getBpsAvg () const;
long getBpsLastChunk () const;
private:
int bpsAvg;
......
......@@ -46,7 +46,11 @@ namespace dash
};
virtual dash::http::Chunk* getNextChunk() throw(dash::exception::EOFException) = 0;
/**
* \return The average bitrate in Bytes per second.
*/
virtual long getBpsAvg () const = 0;
virtual long getBpsLastChunk () const = 0;
};
}
}
......
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