aboutsummaryrefslogtreecommitdiffstats
path: root/MPD
diff options
context:
space:
mode:
authorAngelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>2017-06-27 16:27:57 +0200
committerAngelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>2017-06-27 16:27:57 +0200
commite57e3f656fce06c7867906d014270a0fe8fba175 (patch)
tree21833d84b5225c2f72c1cb87d56aa08f5646b80d /MPD
parentbd809fc04c3f9c36f8d145999e5a008ffd90a10b (diff)
restore adaptation logic and android correction
Change-Id: I20358214b0c1debc544e9e4b08c1cfd84aff4611 Signed-off-by: Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>
Diffstat (limited to 'MPD')
-rw-r--r--MPD/MPDWrapper.cpp8
1 files changed, 4 insertions, 4 deletions
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);