diff options
author | Jochen Dolze <vdr@dolze.de> | 2009-03-09 18:31:28 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2009-03-09 18:31:28 +0100 |
commit | 2da0dc7af7c885c10b9511040c42ee5198a2cfa1 (patch) | |
tree | e6b6deced3cc0404c469662c1d9644eaf356809f /process.cpp | |
parent | 2417d1f3902ee7bfa78ffd6aeb3ea5421a7ac2dd (diff) | |
download | vdr-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.cpp | 10 |
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"); |