mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed canceling the LIRC thread
This commit is contained in:
parent
0ad4b2a713
commit
0fc891340c
@ -1107,6 +1107,7 @@ Marco Schl
|
|||||||
type errors"
|
type errors"
|
||||||
for some improvements to cPoller
|
for some improvements to cPoller
|
||||||
for implementing displaying mandatory subtitles in the SPU decoder
|
for implementing displaying mandatory subtitles in the SPU decoder
|
||||||
|
for pointing out a problem with canceling the LIRC thread
|
||||||
|
|
||||||
Jürgen Schmitz <j.schmitz@web.de>
|
Jürgen Schmitz <j.schmitz@web.de>
|
||||||
for reporting a bug in displaying the current channel when switching via the SVDRP
|
for reporting a bug in displaying the current channel when switching via the SVDRP
|
||||||
|
2
HISTORY
2
HISTORY
@ -3299,3 +3299,5 @@ Video Disk Recorder Revision History
|
|||||||
- Completed the Estonian OSD texts and switched to iso8859-13 character set
|
- Completed the Estonian OSD texts and switched to iso8859-13 character set
|
||||||
(thanks to Arthur Konovalov).
|
(thanks to Arthur Konovalov).
|
||||||
- Made cCondWait::SleepMs() sleep at least 3ms to avoid a possible busy wait.
|
- Made cCondWait::SleepMs() sleep at least 3ms to avoid a possible busy wait.
|
||||||
|
- Fixed canceling the LIRC thread (thanks to Marco Schlüßler for pointing out
|
||||||
|
this one).
|
||||||
|
8
lirc.c
8
lirc.c
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
|
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
|
||||||
*
|
*
|
||||||
* $Id: lirc.c 1.9 2004/12/19 18:05:13 kls Exp $
|
* $Id: lirc.c 1.10 2005/01/14 14:18:42 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "lirc.h"
|
#include "lirc.h"
|
||||||
@ -40,9 +40,11 @@ cLircRemote::cLircRemote(char *DeviceName)
|
|||||||
|
|
||||||
cLircRemote::~cLircRemote()
|
cLircRemote::~cLircRemote()
|
||||||
{
|
{
|
||||||
|
int fh = f;
|
||||||
|
f = -1;
|
||||||
Cancel();
|
Cancel();
|
||||||
if (f >= 0)
|
if (fh >= 0)
|
||||||
close(f);
|
close(fh);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cLircRemote::Ready(void)
|
bool cLircRemote::Ready(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user