diff options
author | Angelo Mantellini <angelo.mantellini@cisco.com> | 2020-02-10 14:24:20 +0100 |
---|---|---|
committer | Angelo Mantellini <angelo.mantellini@cisco.com> | 2020-02-10 14:40:21 +0100 |
commit | d1f1d938930b6b473bedf3736fc675d5c4c3ee9a (patch) | |
tree | 8695f5d9105fad8f08f39ecb7ce7046d8e85ccb9 /Adaptation/Bola.cpp | |
parent | 0b2f5c75cfeb33b233c02866e848e3d94de48ee7 (diff) |
Correction adaptech and minor corrections + remove memory leak libdash
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com>
Change-Id: I83161f19385a5ed739e9fd280925abca8009dc71
Change-Id: If394f999b7325a6b07ddff57201f7657e58a493c
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com>
Diffstat (limited to 'Adaptation/Bola.cpp')
-rw-r--r-- | Adaptation/Bola.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Adaptation/Bola.cpp b/Adaptation/Bola.cpp index 470d22e8..bc37dca5 100644 --- a/Adaptation/Bola.cpp +++ b/Adaptation/Bola.cpp @@ -310,7 +310,7 @@ void BolaAdaptation::setBitrate(uint32_t bufferFill) //double timeSinceLastDownload = getDelayFromLastFragmentInSeconds(); // Define function double timeSinceLastDownload = this->currentDownloadTimeInstant - this->lastDownloadTimeInstant; - Debug("VirtualBuffer - Time Since Last Download:\t%f\n", timeSinceLastDownload); + qDebug("VirtualBuffer - Time Since Last Download:\t%f", timeSinceLastDownload); if (timeSinceLastDownload > 0.0) { this->virtualBuffer += timeSinceLastDownload; @@ -322,7 +322,7 @@ void BolaAdaptation::setBitrate(uint32_t bufferFill) this->virtualBuffer = 0.0; } - Debug("VirtualBuffer - Virtual Buffer Value:\t%f\n", this->virtualBuffer); + qDebug("VirtualBuffer - Virtual Buffer Value:\t%f", this->virtualBuffer); // Update currentDownloadTimeInstant this->lastDownloadTimeInstant = this->currentDownloadTimeInstant; @@ -330,7 +330,7 @@ void BolaAdaptation::setBitrate(uint32_t bufferFill) // Update bolaQuality using virtualBuffer: bufferLevel might be artificially low because of lack of availability int bolaQualityVirtual = getQualityFromBufferLevel(bufferLevelSeconds + this->virtualBuffer); - Debug("VirtualBuffer - Bola Quality Virtual:\t%d\n", bolaQualityVirtual); + qDebug("VirtualBuffer - Bola Quality Virtual:\t%d", bolaQualityVirtual); if (bolaQualityVirtual > bolaQuality) { // May use quality higher than that indicated by real buffer level. // In this case, make sure there is enough throughput to download a fragment before real buffer runs out. |