summaryrefslogtreecommitdiff
path: root/keys.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-09-14 10:07:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-09-14 10:07:47 +0200
commitfc78971a2802e25ea42955b4d75d936693a5540c (patch)
treee6c97a5c6c13a7eeb7fa93525c47c599e908198a /keys.c
parent07bc699dca7e9cedf2cd1255765f0d0b661c3a97 (diff)
downloadvdr-fc78971a2802e25ea42955b4d75d936693a5540c.tar.gz
vdr-fc78971a2802e25ea42955b4d75d936693a5540c.tar.bz2
VDR now starts up even if 'keymacros.conf' references a plugin that is currently not loaded
Diffstat (limited to 'keys.c')
-rw-r--r--keys.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/keys.c b/keys.c
index 381b3189..5529f323 100644
--- a/keys.c
+++ b/keys.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: keys.c 1.4 2002/11/30 16:01:37 kls Exp $
+ * $Id: keys.c 1.5 2003/09/14 10:07:47 kls Exp $
*/
#include "keys.h"
@@ -212,7 +212,8 @@ bool cKeyMacro::Parse(char *s)
plugin = strdup(p + 1);
if (!cPluginManager::GetPlugin(plugin)) {
esyslog("ERROR: unknown plugin '%s'", plugin);
- return false;
+ // this is not a fatal error - plugins may or may not be loaded
+ macro[--n] = kNone; // makes sure the key doesn't cause any side effects
}
}
else {