infoviewer: make oldinfo a member of the class

This commit is contained in:
Stefan Seyfried
2012-11-21 18:19:39 +01:00
parent 86876c76b4
commit 57911bf009
2 changed files with 3 additions and 2 deletions

View File

@@ -117,6 +117,8 @@ CInfoViewer::CInfoViewer ()
Init(); Init();
infoViewerBB->Init(); infoViewerBB->Init();
strcpy(old_timestr, ""); strcpy(old_timestr, "");
oldinfo.current_uniqueKey = 0;
oldinfo.next_uniqueKey = 0;
} }
CInfoViewer::~CInfoViewer() CInfoViewer::~CInfoViewer()
@@ -1297,8 +1299,6 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
void CInfoViewer::getEPG(const t_channel_id for_channel_id, CSectionsdClient::CurrentNextInfo &info) void CInfoViewer::getEPG(const t_channel_id for_channel_id, CSectionsdClient::CurrentNextInfo &info)
{ {
static CSectionsdClient::CurrentNextInfo oldinfo;
/* to clear the oldinfo for channels without epg, call getEPG() with for_channel_id = 0 */ /* to clear the oldinfo for channels without epg, call getEPG() with for_channel_id = 0 */
if (for_channel_id == 0) if (for_channel_id == 0)
{ {

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;