summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-14 10:46:19 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-14 10:46:19 +0200
commit3a9deab56cf59a7620cf6e46411bcb4dd3e79f87 (patch)
tree018290cd52f19aa18fe767ff01ad7f6a0821dfce /remote.c
parent93d2941ebe777550559b4c27bfc3b04806d684f7 (diff)
downloadvdr-3a9deab56cf59a7620cf6e46411bcb4dd3e79f87.tar.gz
vdr-3a9deab56cf59a7620cf6e46411bcb4dd3e79f87.tar.bz2
cRemote::PutMacro() now sets a lock while it expands the macro
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote.c b/remote.c
index 06b3bb1c..6f63fcd9 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 1.52 2006/10/14 10:24:13 kls Exp $
+ * $Id: remote.c 1.53 2006/10/14 10:44:02 kls Exp $
*/
#include "remote.h"
@@ -106,6 +106,7 @@ bool cRemote::PutMacro(eKeys Key)
const cKeyMacro *km = KeyMacros.Get(Key);
if (km) {
plugin = km->Plugin();
+ cMutexLock MutexLock(&mutex);
for (int i = km->NumKeys(); --i > 0; ) {
if (!Put(km->Macro()[i], true))
return false;