mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added a missing cMutexLock to cRemote::HasKeys()
This commit is contained in:
parent
fa512884b9
commit
de23bd7cb1
@ -1281,6 +1281,7 @@ Wolfgang Rohdewald <wolfgang@rohdewald.de>
|
|||||||
in cDevice::Shutdown()
|
in cDevice::Shutdown()
|
||||||
for removing some unneeded code and fixing access to unallocated memory in
|
for removing some unneeded code and fixing access to unallocated memory in
|
||||||
cEvent::FixEpgBugs()
|
cEvent::FixEpgBugs()
|
||||||
|
for adding a missing cMutexLock to cRemote::HasKeys()
|
||||||
|
|
||||||
Chad Flynt <hoochster@sofnet.com>
|
Chad Flynt <hoochster@sofnet.com>
|
||||||
for suggestions and experiments regarding the buffer reserve in cTransfer
|
for suggestions and experiments regarding the buffer reserve in cTransfer
|
||||||
|
1
HISTORY
1
HISTORY
@ -3471,3 +3471,4 @@ Video Disk Recorder Revision History
|
|||||||
menu entry is a directory (thanks to Steffen Beyer).
|
menu entry is a directory (thanks to Steffen Beyer).
|
||||||
- Improved falling back to normal recording if the VPS data hasn't been seen for more
|
- Improved falling back to normal recording if the VPS data hasn't been seen for more
|
||||||
than 30 seconds.
|
than 30 seconds.
|
||||||
|
- Added a missing cMutexLock to cRemote::HasKeys() (thanks to Wolfgang Rohdewald).
|
||||||
|
3
remote.c
3
remote.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: remote.c 1.41 2004/10/31 14:05:12 kls Exp $
|
* $Id: remote.c 1.42 2005/03/20 13:25:31 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "remote.h"
|
#include "remote.h"
|
||||||
@ -145,6 +145,7 @@ bool cRemote::Put(const char *Code, bool Repeat, bool Release)
|
|||||||
|
|
||||||
bool cRemote::HasKeys(void)
|
bool cRemote::HasKeys(void)
|
||||||
{
|
{
|
||||||
|
cMutexLock MutexLock(&mutex);
|
||||||
return in != out && !(keys[out] & k_Repeat);
|
return in != out && !(keys[out] & k_Repeat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user