Revert "second try to fix reloadchannels segfault with alternate_logos"

This reverts commit f58fc736fe.
This commit is contained in:
Jacek Jendrzej
2021-10-17 17:06:49 +02:00
parent 56bd12bac1
commit 173664f80a
2 changed files with 2 additions and 3 deletions

View File

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

View File

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