From 5033a9e4ef127bbe73f57f8ebef4f811c5f4c87c Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Mon, 25 Mar 2013 18:02:46 +0100 Subject: [PATCH] infoviewer: make oldinfo a member of the class --- src/gui/infoviewer.cpp | 4 ++-- src/gui/infoviewer.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index d4d1b0b76..de51eddb8 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -110,6 +110,8 @@ CInfoViewer::CInfoViewer () ChanInfoX = 0; Init(); infoViewerBB->Init(); + oldinfo.current_uniqueKey = 0; + oldinfo.next_uniqueKey = 0; } 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) { - static CSectionsdClient::CurrentNextInfo oldinfo; - CEitManager::getInstance()->getCurrentNextServiceKey(for_channel_id, info); //printf("CInfoViewer::getEPG: old uniqueKey %llx new %llx\n", oldinfo.current_uniqueKey, info.current_uniqueKey); diff --git a/src/gui/infoviewer.h b/src/gui/infoviewer.h index c1860b4d6..9a0831132 100644 --- a/src/gui/infoviewer.h +++ b/src/gui/infoviewer.h @@ -82,6 +82,7 @@ class CInfoViewer int ChanHeight; CSectionsdClient::CurrentNextInfo info_CurrentNext; + CSectionsdClient::CurrentNextInfo oldinfo; t_channel_id channel_id; //uint32_t fadeTimer;