diff options
author | Midas <vdrportal_midas@gmx.de> | 2010-06-08 12:52:10 +0200 |
---|---|---|
committer | Midas <vdrportal_midas@gmx.de> | 2010-06-08 12:52:10 +0200 |
commit | 891bfb5ba9f052f9a97ef0abedeb039236701755 (patch) | |
tree | 839838706677c12ff9f0b9a6a1ee0bdd5926fba3 /block.c | |
parent | 4753e96fbaaf0ac96ea8a8512e90819591cdc723 (diff) | |
download | vdr-plugin-block-891bfb5ba9f052f9a97ef0abedeb039236701755.tar.gz vdr-plugin-block-891bfb5ba9f052f9a97ef0abedeb039236701755.tar.bz2 |
This version completes the basic parental guidance
functions. I will update README soon.
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -102,7 +102,7 @@ bool cPluginBlock::SetupParse(const char *Name, const char *Value) void cPluginBlock::MainThreadHook() { - if (SetupBlock.DetectionMethod!=1) return;//other detection method active in setup + if (cSetupBlock::DetectionMethod!=1) return;//other detection method active in setup channelnumber=cDevice::PrimaryDevice()->CurrentChannel(); if (channelnumber==0) return; //switch in progress @@ -113,26 +113,26 @@ void cPluginBlock::MainThreadHook() { cSchedulesLock schedLock; const cSchedules *scheds = cSchedules::Schedules(schedLock); - + if (scheds == NULL) { return; } - + const cSchedule *sched = scheds->GetSchedule(channel->GetChannelID()); if (sched == NULL) { return; } - + const cEvent *present = sched->GetPresentEvent(); const cEvent *follow = sched->GetFollowingEvent(); - + if (present == NULL) { return; } - + //TODO: check if isrequested is still necessary // if (!cControlBlock::IsRequested() && !EventsBlock.Acceptable(present->Title())) const char* title=present->Title(); @@ -145,9 +145,9 @@ void cPluginBlock::MainThreadHook() cControl::Launch(new cControlBlock(channel, present, follow)); } } -} - +} + VDRPLUGINCREATOR(cPluginBlock); // Don't touch this! |