summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2011-03-23 18:16:23 +0100
committerLars Hanisch <dvb@flensrocker.de>2011-03-23 18:16:23 +0100
commit1758d60e2ec00151b41b5f966d6b7f1660a34030 (patch)
treecef97661651e18aeaeadbd636ba312eef644b62b
parent06e21e6423ffc4e0c2724c7969e6130bd0f033af (diff)
downloadvdr-plugin-dynamite-1758d60e2ec00151b41b5f966d6b7f1660a34030.tar.gz
vdr-plugin-dynamite-1758d60e2ec00151b41b5f966d6b7f1660a34030.tar.bz2
don't print log message on 'set timeout' if no device is attached
-rw-r--r--dynamicdevice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dynamicdevice.c b/dynamicdevice.c
index 2fcb9a4..111c9a1 100644
--- a/dynamicdevice.c
+++ b/dynamicdevice.c
@@ -357,6 +357,8 @@ void cDynamicDevice::ReadUdevProperties(void)
void cDynamicDevice::InternSetGetTSTimeout(int Seconds)
{
getTSTimeout = Seconds;
+ if (subDevice == NULL)
+ return; // no log message if no device is connected
if (Seconds == 0)
isyslog("dynamite: disable GetTSTimeout on device %s", GetDevPath());
else