From 65bb20ba5cf4ede70026142d61e728c44cc78f9c Mon Sep 17 00:00:00 2001 From: Jacques Samain Date: Fri, 23 Jun 2017 18:47:47 +0200 Subject: clean up: removed useless functions Change-Id: If55237df9f9bc67b97912321b86273588f7bedd6 Signed-off-by: Jacques Samain --- Input/DASHReceiver.cpp | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) (limited to 'Input/DASHReceiver.cpp') diff --git a/Input/DASHReceiver.cpp b/Input/DASHReceiver.cpp index aaa75205..c6dafb93 100644 --- a/Input/DASHReceiver.cpp +++ b/Input/DASHReceiver.cpp @@ -204,10 +204,7 @@ libdash::framework::adaptation::IAdaptationLogic* DASHReceiver::GetAdaptationLog { return this->adaptationLogic; } -dash::mpd::IRepresentation* DASHReceiver::GetRepresentation () -{ - return NULL; -} + uint32_t DASHReceiver::CalculateSegmentOffset () { return this->mpdWrapper->calculateSegmentOffset(type, bufferSize); @@ -218,14 +215,6 @@ void DASHReceiver::NotifySegmentDownloaded () this->observer->onSegmentDownloaded(); } -void DASHReceiver::NotifyBitrateChange(dash::mpd::IRepresentation *representation) -{ -// if(this->representation != representation) -// { -// this->representation = representation; -// this->SetRepresentation(this->period,this->adaptationSet,this->representation); -// } -} void DASHReceiver::DownloadInitSegmentWithoutLock () { int rep = std::stoi(this->mpdWrapper->getRepresentationIDWithoutLock(type).c_str()); @@ -419,30 +408,3 @@ void DASHReceiver::SetDrop (float drop) this->drop = drop; } -void DASHReceiver::updateMPD(IMPD* mpd) -{ -// EnterCriticalSection(&this->monitorMutex); - //First we need to find the new segmentNumber -> what is the segment time now? -// uint32_t time = this->representationStream->getTime(this->segmentNumber); -// printf("old segmentNumber!: %d\n", this->segmentNumber); -// printf("time: %u\n", time); - //Second, replace the MPD with the new one -// delete(this->mpd); -// this->mpd = mpd; -// - //Third, Update all the structures associated to the mpd -// this->period = this->mpd->GetPeriods().at(0); -// this->adaptationSet = this->period->GetAdaptationSets().at(0); -// this->representation = this->adaptationSet->GetRepresentation().at(0); -// delete(this->adaptationSetStream); -// this->adaptationSetStream = new AdaptationSetStream(mpd, period, adaptationSet); -// this->representationStream = adaptationSetStream->getRepresentationStream(this->representation); -// this->segmentOffset = CalculateSegmentOffset(); -// this->representationStream->setSegmentOffset(this->segmentOffset); -// - //Fourth, Set the new segmentNumber by finding the index of the segment associated to 'uint32_t time' in the new mpd -// this->segmentNumber = this->representationStream->getSegmentNumber(time); -// printf("new segmentNumber!: %d\n", this->segmentNumber); -// LeaveCriticalSection(&this->monitorMutex); -} - -- cgit 1.2.3-korg