use alternative logo if present

Origin commit data
------------------
Commit: 477264a4c6
Author: TangoCash <eric@loxat.de>
Date: 2018-09-09 (Sun, 09 Sep 2018)
This commit is contained in:
TangoCash
2018-09-09 13:06:05 +02:00
committed by vanhofen
parent 377fdeea07
commit 2068925288

View File

@@ -4,6 +4,7 @@
#include "pictureviewer.h" #include "pictureviewer.h"
#include "pv_config.h" #include "pv_config.h"
#include <system/debug.h> #include <system/debug.h>
#include <system/helpers.h>
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@@ -580,6 +581,18 @@ bool CPictureViewer::GetLogoName(const uint64_t& channel_id, const std::string&
return true; return true;
} }
} }
CZapitChannel * cc = NULL;
if (CNeutrinoApp::getInstance()->channelList)
cc = CNeutrinoApp::getInstance()->channelList->getChannel(channel_id);
if (cc) {
if (!cc->getAlternateLogo().empty())
{
std::string lname = dlTmpName(cc->getAlternateLogo());
name = lname;
cc->setAlternateLogo(lname);
return true;
}
}
} }
return false; return false;
} }