From e57e3f656fce06c7867906d014270a0fe8fba175 Mon Sep 17 00:00:00 2001 From: "Angelo Mantellini (manangel)" Date: Tue, 27 Jun 2017 16:27:57 +0200 Subject: restore adaptation logic and android correction Change-Id: I20358214b0c1debc544e9e4b08c1cfd84aff4611 Signed-off-by: Angelo Mantellini (manangel) --- MPD/MPDWrapper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MPD') diff --git a/MPD/MPDWrapper.cpp b/MPD/MPDWrapper.cpp index 163ed19d..2f66834e 100644 --- a/MPD/MPDWrapper.cpp +++ b/MPD/MPDWrapper.cpp @@ -125,10 +125,10 @@ void MPDWrapper::findVideoRepresentation (IMPD* mpd) if(this->videoRepresentation) { uint32_t time = this->videoRepresentations->find(this->videoRepresentation)->second->getTime(this->videoSegmentNumber); - uint32_t id = std::stoi(this->videoRepresentation->GetId()); + uint32_t id = atoi(this->videoRepresentation->GetId().c_str()); for(size_t i = 0; i < representations.size(); i++) { - if(id == std::stoi(representations.at(i)->GetId())) + if(id == atoi(representations.at(i)->GetId().c_str())) { this->videoRepresentation = representations.at(i); this->destroyAdaptationSetStream(viper::managers::StreamType::VIDEO); @@ -157,10 +157,10 @@ void MPDWrapper::findAudioRepresentation (IMPD* mpd) if(this->audioRepresentation) { uint32_t time = this->audioRepresentations->find(this->audioRepresentation)->second->getTime(this->audioSegmentNumber); - uint32_t id = std::stoi(this->audioRepresentation->GetId()); + uint32_t id = atoi(this->audioRepresentation->GetId().c_str()); for(size_t i = 0; i < representations.size(); i++) { - if(id == std::stoi(representations.at(i)->GetId())) + if(id == atoi(representations.at(i)->GetId().c_str())) { this->audioRepresentation = representations.at(i); this->destroyAdaptationSetStream(viper::managers::StreamType::AUDIO); -- cgit 1.2.3-korg