summaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorMidas <vdrportal_midas@gmx.de>2010-08-09 22:14:55 +0200
committerMidas <vdrportal_midas@gmx.de>2010-08-09 22:14:55 +0200
commit935840d74b9af4fa9fac5a882d436075fc188fa8 (patch)
treed969e5451d9bab244abcf180a86c69b02d7eb1eb /block.c
parentbe9c683e1bb190de3f52238bd698a3d90f6d1a97 (diff)
downloadvdr-plugin-block-935840d74b9af4fa9fac5a882d436075fc188fa8.tar.gz
vdr-plugin-block-935840d74b9af4fa9fac5a882d436075fc188fa8.tar.bz2
Bugfix. Logging prevented blocking ;)
Fixed compiler warning.
Diffstat (limited to 'block.c')
-rw-r--r--block.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/block.c b/block.c
index abf54fa..eb932a0 100644
--- a/block.c
+++ b/block.c
@@ -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