infoviewer: make oldinfo a member of the class

This commit is contained in:
Stefan Seyfried
2013-03-25 18:02:46 +01:00
committed by svenhoefer
parent 4c3a92a130
commit 5033a9e4ef
2 changed files with 3 additions and 2 deletions

View File

@@ -110,6 +110,8 @@ CInfoViewer::CInfoViewer ()
ChanInfoX = 0; ChanInfoX = 0;
Init(); Init();
infoViewerBB->Init(); infoViewerBB->Init();
oldinfo.current_uniqueKey = 0;
oldinfo.next_uniqueKey = 0;
} }
CInfoViewer::~CInfoViewer() CInfoViewer::~CInfoViewer()
@@ -1314,8 +1316,6 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
CSectionsdClient::CurrentNextInfo CInfoViewer::getEPG (const t_channel_id for_channel_id, CSectionsdClient::CurrentNextInfo &info) CSectionsdClient::CurrentNextInfo CInfoViewer::getEPG (const t_channel_id for_channel_id, CSectionsdClient::CurrentNextInfo &info)
{ {
static CSectionsdClient::CurrentNextInfo oldinfo;
CEitManager::getInstance()->getCurrentNextServiceKey(for_channel_id, info); CEitManager::getInstance()->getCurrentNextServiceKey(for_channel_id, info);
//printf("CInfoViewer::getEPG: old uniqueKey %llx new %llx\n", oldinfo.current_uniqueKey, info.current_uniqueKey); //printf("CInfoViewer::getEPG: old uniqueKey %llx new %llx\n", oldinfo.current_uniqueKey, info.current_uniqueKey);

View File

@@ -82,6 +82,7 @@ class CInfoViewer
int ChanHeight; int ChanHeight;
CSectionsdClient::CurrentNextInfo info_CurrentNext; CSectionsdClient::CurrentNextInfo info_CurrentNext;
CSectionsdClient::CurrentNextInfo oldinfo;
t_channel_id channel_id; t_channel_id channel_id;
//uint32_t fadeTimer; //uint32_t fadeTimer;