diff options
author | Midas <vdrportal_midas@gmx.de> | 2010-08-09 22:14:55 +0200 |
---|---|---|
committer | Midas <vdrportal_midas@gmx.de> | 2010-08-09 22:14:55 +0200 |
commit | 935840d74b9af4fa9fac5a882d436075fc188fa8 (patch) | |
tree | d969e5451d9bab244abcf180a86c69b02d7eb1eb | |
parent | be9c683e1bb190de3f52238bd698a3d90f6d1a97 (diff) | |
download | vdr-plugin-block-935840d74b9af4fa9fac5a882d436075fc188fa8.tar.gz vdr-plugin-block-935840d74b9af4fa9fac5a882d436075fc188fa8.tar.bz2 |
Bugfix. Logging prevented blocking ;)
Fixed compiler warning.
-rw-r--r-- | block.c | 13 | ||||
-rw-r--r-- | status.c | 5 |
2 files changed, 14 insertions, 4 deletions
@@ -137,8 +137,14 @@ bool cPluginBlock::SetupParse(const char *Name, const char *Value) void cPluginBlock::MainThreadHook() { - if (cSetupBlock::DetectionMethod!=1) return;//other detection method active in setup - + if (cSetupBlock::DetectionMethod!=1) + { +#ifdef LOGGING + dsyslog("plugin-block: MainThreadHook returned because other detection method active in setup"); +#endif + return;//other detection method active in setup + } + if (cEventBlock::ReplayingRecording) //no block events on the underlying channel processed - user watches recording { #ifdef LOGGING @@ -158,7 +164,6 @@ void cPluginBlock::MainThreadHook() temp_replaying_recording=false; dsyslog("plugin-block: replay of recording ended. Resuming detection mode."); } - return; } #endif @@ -170,6 +175,7 @@ void cPluginBlock::MainThreadHook() #endif return; //switch in progress } + const cChannel *channel=Channels.GetByNumber(channelnumber); @@ -242,6 +248,7 @@ void cPluginBlock::MainThreadHook() #endif return; //current show has already been checked } + #ifdef LOGGING dsyslog("plugin-block: new EPG title detected: '%s' - comparing with '%s'",title, cEventBlock::LastTitle); #endif @@ -20,7 +20,10 @@ cStatusBlock::cStatusBlock(void): void cStatusBlock::ChannelSwitch(const cDevice *Device, int ChannelNumber) { int current_channel=cDevice::CurrentChannel(); - +#ifdef LOGGING + int device_number=Device->DeviceNumber(); +#endif + if (cSetupBlock::LastChannel==0) { #ifdef LOGGING |