summaryrefslogtreecommitdiff
path: root/process.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2009-03-09 18:31:28 +0100
committerJochen Dolze <vdr@dolze.de>2009-03-09 18:31:28 +0100
commit2da0dc7af7c885c10b9511040c42ee5198a2cfa1 (patch)
treee6b6deced3cc0404c469662c1d9644eaf356809f /process.cpp
parent2417d1f3902ee7bfa78ffd6aeb3ea5421a7ac2dd (diff)
downloadvdr-plugin-infosatepg-0.0.8.tar.gz
vdr-plugin-infosatepg-0.0.8.tar.bz2
Changed thread handlingv0.0.8
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");