Commit 6ee46f4b authored by Francois Cartegnie's avatar Francois Cartegnie

demux: dash: remove unused buffer observer impl

parent cf3f7140
...@@ -35,9 +35,7 @@ AbstractAdaptationLogic::AbstractAdaptationLogic (MPD *mpd_) : ...@@ -35,9 +35,7 @@ AbstractAdaptationLogic::AbstractAdaptationLogic (MPD *mpd_) :
mpd (mpd_), mpd (mpd_),
currentPeriod (mpd->getFirstPeriod()), currentPeriod (mpd->getFirstPeriod()),
count (0), count (0),
prevRepresentation (NULL), prevRepresentation (NULL)
bufferedMicroSec (0),
bufferedPercent (0)
{ {
} }
...@@ -99,17 +97,6 @@ Chunk* AbstractAdaptationLogic::getNextChunk(Streams::Type type) ...@@ -99,17 +97,6 @@ Chunk* AbstractAdaptationLogic::getNextChunk(Streams::Type type)
return NULL; return NULL;
} }
void AbstractAdaptationLogic::bufferLevelChanged (mtime_t bufferedMicroSec, int bufferedPercent)
{
this->bufferedMicroSec = bufferedMicroSec;
this->bufferedPercent = bufferedPercent;
}
void AbstractAdaptationLogic::updateDownloadRate (size_t, mtime_t) void AbstractAdaptationLogic::updateDownloadRate (size_t, mtime_t)
{ {
} }
int AbstractAdaptationLogic::getBufferPercent () const
{
return this->bufferedPercent;
}
...@@ -47,18 +47,11 @@ namespace dash ...@@ -47,18 +47,11 @@ namespace dash
virtual void updateDownloadRate (size_t, mtime_t); virtual void updateDownloadRate (size_t, mtime_t);
virtual void bufferLevelChanged (mtime_t bufferedMicroSec, int bufferedPercent);
int getBufferPercent () const;
protected: protected:
dash::mpd::MPD *mpd; dash::mpd::MPD *mpd;
dash::mpd::Period *currentPeriod; dash::mpd::Period *currentPeriod;
size_t count; size_t count;
mpd::Representation *prevRepresentation; mpd::Representation *prevRepresentation;
private:
mtime_t bufferedMicroSec;
int bufferedPercent;
}; };
} }
} }
......
...@@ -35,7 +35,7 @@ namespace dash ...@@ -35,7 +35,7 @@ namespace dash
{ {
namespace logic namespace logic
{ {
class IAdaptationLogic : public IDownloadRateObserver, public dash::buffer::IBufferObserver class IAdaptationLogic : public IDownloadRateObserver
{ {
public: public:
......
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