summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-03-31 14:24:58 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-03-31 14:24:58 +0200
commitdaa904724785d52c6ca73416068d90f35721cc97 (patch)
tree207c85306fc991608996ca8cd23c7815eaaeeda3 /interface.c
parent8c55ada0af204e7212d2359d221c4f5c632454d8 (diff)
downloadvdr-daa904724785d52c6ca73416068d90f35721cc97.tar.gz
vdr-daa904724785d52c6ca73416068d90f35721cc97.tar.bz2
Fixed learning keys when VDR is already running
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/interface.c b/interface.c
index 59147f4b..9c4aefa9 100644
--- a/interface.c
+++ b/interface.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.c 1.74 2006/03/25 11:50:55 kls Exp $
+ * $Id: interface.c 1.75 2006/03/31 14:20:04 kls Exp $
*/
#include "interface.h"
@@ -37,7 +37,10 @@ eKeys cInterface::GetKey(bool Wait)
if (SVDRP->Process())
Wait = false;
}
- return cRemote::Get(Wait ? 1000 : 10);
+ if (!cRemote::IsLearning())
+ return cRemote::Get(Wait ? 1000 : 10);
+ else
+ return kNone;
}
eKeys cInterface::Wait(int Seconds, bool KeepChar)