summaryrefslogtreecommitdiff
path: root/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'process.cpp')
-rw-r--r--process.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/process.cpp b/process.cpp
index ee168ef..9e8cd9e 100644
--- a/process.cpp
+++ b/process.cpp
@@ -611,15 +611,23 @@ const char *cInfosatevent::ExtEPG(void)
}
// --- cProcessInfosatepg
-cProcessInfosatepg::cProcessInfosatepg(int Mac, cGlobalInfosatepg *Global)
+cProcessInfosatepg::cProcessInfosatepg()
:cThread("infosatepg")
{
+ mac=-1;
+ global=NULL;
+}
+
+void cProcessInfosatepg::SetInfo(int Mac, cGlobalInfosatepg *Global)
+{
mac=Mac;
global=Global;
}
void cProcessInfosatepg::Action()
{
+ if ((mac<EPG_FIRST_DAY_MAC) || (mac>EPG_LAST_DAY_MAC)) return;
+
FILE *f;
const char *file = global->Infosatdata[mac].GetFile();
f=fopen(file,"r");