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 /status.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 'status.c')
-rw-r--r-- | status.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -29,8 +29,8 @@ void cStatusBlock::ChannelSwitch(const cDevice *Device, int ChannelNumber) cSetupBlock::LastChannel=cDevice::CurrentChannel(); return; //Switch in progress; } - - if (SetupBlock.DetectionMethod!=0) return; + + if (cSetupBlock::DetectionMethod!=0) return; #ifdef LOGGING dsyslog("plugin-block: cStatusBlock was informed about channel switch at device %d, channel no %d",Device->DeviceNumber(),ChannelNumber); @@ -59,7 +59,7 @@ void cStatusBlock::ChannelSwitch(const cDevice *Device, int ChannelNumber) #endif return; } - + if (Device->Replaying()) { #ifdef LOGGING @@ -81,7 +81,7 @@ void cStatusBlock::ChannelSwitch(const cDevice *Device, int ChannelNumber) const cEvent *present = sched->GetPresentEvent(); const cEvent *follow = sched->GetFollowingEvent(); if (present == NULL) return; - + if (!cControlBlock::IsRequested() && !EventsBlock.Acceptable(present->Title())) { isyslog("plugin-block: channel %d is not acceptable at present", ChannelNumber); @@ -89,3 +89,4 @@ void cStatusBlock::ChannelSwitch(const cDevice *Device, int ChannelNumber) } } } + |