second try to fix reloadchannels segfault with alternate_logos

This commit is contained in:
Jacek Jendrzej
2021-10-17 15:58:20 +02:00
parent 7234761098
commit f58fc736fe
2 changed files with 3 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
#include <errno.h> #include <errno.h>
#include <cs_api.h> #include <cs_api.h>
#include <sys/sysinfo.h> #include <sys/sysinfo.h>
#include <zapit/zapit.h>
#ifdef FBV_SUPPORT_GIF #ifdef FBV_SUPPORT_GIF
extern int fh_gif_getsize (const char *, int *, int *, int, int); extern int fh_gif_getsize (const char *, int *, int *, int, int);
@@ -625,7 +626,7 @@ bool CPictureViewer::GetLogoName(const uint64_t &ChannelID, const std::string &C
CZapitChannel * cc = NULL; CZapitChannel * cc = NULL;
if (name.compare("alternate_logos") != 0 && ChannelID && CNeutrinoApp::getInstance()->channelList) if (name.compare("alternate_logos") != 0 && ChannelID && CNeutrinoApp::getInstance()->channelList)
cc = CNeutrinoApp::getInstance()->channelList->getChannel(ChannelID); cc = CServiceManager::getInstance()->FindChannel(ChannelID);
if (cc) if (cc)
{ {

View File

@@ -1127,7 +1127,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
CZapitChannel * cc = NULL; CZapitChannel * cc = NULL;
if (channel->getChannelID() & 0xFFFFFFFFFFFFULL) if (channel->getChannelID() & 0xFFFFFFFFFFFFULL)
if (CNeutrinoApp::getInstance()->channelList) if (CNeutrinoApp::getInstance()->channelList)
cc = CNeutrinoApp::getInstance()->channelList->getChannel(channel->getChannelID()); cc = CServiceManager::getInstance()->FindChannel(channel->getChannelID());
if (cc) if (cc)
{ {