aboutsummaryrefslogtreecommitdiffstats
path: root/Managers
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-06-12 18:02:19 +0200
committerAngelo Mantellini <manangel@cisco.com>2019-06-18 14:50:29 +0200
commit6fe18f6a466dbae611bbe1e4fa33b352cc4ef6df (patch)
tree4521d14f28894256891c878b08b5410e02d43125 /Managers
parent2a876fc0d7986dc1ecb169bdc41972fe0f33d0dd (diff)
Correct android issues for libdash and viper
Change-Id: Ia5b95bda6336b6544c881c416f852069662f5e3f Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'Managers')
-rw-r--r--Managers/MultimediaManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Managers/MultimediaManager.cpp b/Managers/MultimediaManager.cpp
index 81c5514e..1bbb2c65 100644
--- a/Managers/MultimediaManager.cpp
+++ b/Managers/MultimediaManager.cpp
@@ -112,7 +112,6 @@ bool MultimediaManager::initICN(const std::string& url)
{
pos = pos + 1;
}
-
std::string downloadFile(this->downloadPath + url.substr(pos).c_str());
FILE *fp;
fp = fopen(downloadFile.c_str(), "w");
@@ -131,6 +130,7 @@ bool MultimediaManager::initICN(const std::string& url)
}
fclose(fp);
IMPD* mpd = this->manager->Open(const_cast<char*>(downloadFile.c_str()), url);
+ qDebug("downloadFile %s", downloadFile.c_str());
remove(downloadFile.c_str());
free(data);
if(mpd == NULL)
@@ -143,11 +143,10 @@ bool MultimediaManager::initICN(const std::string& url)
this->mpdWrapper->updateMPD(mpd);
for (size_t i = 0; i < this->managerObservers.size(); i++)
this->managerObservers.at(i)->setMPDWrapper(this->mpdWrapper);
- if( !strcmp(this->mpdWrapper->getType().c_str(), "static") )
+ if( this->mpdWrapper->getType().compare("static") )
{
delete icnConn;
}
-
LeaveCriticalSection(&this->monitorMutex);
return true;
}