summaryrefslogtreecommitdiff
path: root/keys.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-14 10:41:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-14 10:41:20 +0200
commit93d2941ebe777550559b4c27bfc3b04806d684f7 (patch)
tree764f54f643ea657bd28cea9d0dbc1ed8114f8ee6 /keys.c
parent7bed3fd6ba154c108872f357a9e8e247122da411 (diff)
downloadvdr-93d2941ebe777550559b4c27bfc3b04806d684f7.tar.gz
vdr-93d2941ebe777550559b4c27bfc3b04806d684f7.tar.bz2
Keys from expanded key macros are now put into the front of the key queue
Diffstat (limited to 'keys.c')
-rw-r--r--keys.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/keys.c b/keys.c
index 6ebdbfea..577dae22 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.13 2006/04/15 13:50:43 kls Exp $
+ * $Id: keys.c 1.14 2006/10/14 10:18:05 kls Exp $
*/
#include "keys.h"
@@ -186,8 +186,9 @@ void cKeys::PutSetup(const char *Remote, const char *Setup)
cKeyMacro::cKeyMacro(void)
{
+ numKeys = 0;
for (int i = 0; i < MAXKEYSINMACRO; i++)
- macro[i] = kNone;
+ macro[i] = kNone; // for compatibility with old code that doesn't know about NumKeys()
plugin = NULL;
}
@@ -241,9 +242,9 @@ bool cKeyMacro::Parse(char *s)
return false;
}
}
- if (n < 2) {
- esyslog("ERROR: empty key macro");
- }
+ if (n < 2)
+ esyslog("ERROR: empty key macro"); // non fatal
+ numKeys = n;
return true;
}