diff options
author | 2020-02-10 14:24:20 +0100 | |
---|---|---|
committer | 2020-02-10 14:40:21 +0100 | |
commit | d1f1d938930b6b473bedf3736fc675d5c4c3ee9a (patch) | |
tree | 8695f5d9105fad8f08f39ecb7ce7046d8e85ccb9 /Adaptation/RateBasedAdaptation.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/RateBasedAdaptation.cpp')
-rw-r--r-- | Adaptation/RateBasedAdaptation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Adaptation/RateBasedAdaptation.cpp b/Adaptation/RateBasedAdaptation.cpp index 14b3f3d6..8fe0aad6 100644 --- a/Adaptation/RateBasedAdaptation.cpp +++ b/Adaptation/RateBasedAdaptation.cpp @@ -37,7 +37,7 @@ RateBasedAdaptation::RateBasedAdaptation(StreamType type, MPDWrapper *mpdWrapper this->mpdWrapper->releaseLock(); this->multimediaManager = NULL; this->alpha = params->Rate_Alpha; - Debug("RateBasedParams:\t%f\n",alpha); + qDebug("RateBasedParams:\t%f",alpha); this->averageBw = 0; } @@ -103,14 +103,14 @@ void RateBasedAdaptation::setBitrate(uint64_t bps) if((size_t)i == (size_t)(representations.size())) i = i-1; - Debug("ADAPTATION_LOGIC:\tFor %s:\tBW_estimation(ewma): %lu, choice: %lu\n", ((this->type == viper::managers::StreamType::VIDEO) ? "video" : "audio"), this->averageBw, i); + qDebug("ADAPTATION_LOGIC:\tFor %s:\tBW_estimation(ewma): %lu, choice: %lu", ((this->type == viper::managers::StreamType::VIDEO) ? "video" : "audio"), this->averageBw, i); this->representation = representations.at(i); this->currentBitrate = this->representation->GetBandwidth(); } void RateBasedAdaptation::bitrateUpdate(uint64_t bps, uint32_t segNum) { - Debug("Rate Based adaptation: speed received: %lu\n", bps); + qDebug("Rate Based adaptation: speed received: %lu", bps); this->mpdWrapper->acquireLock(); this->setBitrate(bps); this->notifyBitrateChange(); |