diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2011-03-23 18:16:23 +0100 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2011-03-23 18:16:23 +0100 |
commit | 1758d60e2ec00151b41b5f966d6b7f1660a34030 (patch) | |
tree | cef97661651e18aeaeadbd636ba312eef644b62b | |
parent | 06e21e6423ffc4e0c2724c7969e6130bd0f033af (diff) | |
download | vdr-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.c | 2 |
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 |