mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
cRemote::PutMacro() now sets a lock while it expands the macro
This commit is contained in:
3
remote.c
3
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;
|
||||
|
||||
Reference in New Issue
Block a user