1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed handling error case '-1' when polling section filters

This commit is contained in:
Klaus Schmidinger 2004-07-17 14:35:31 +02:00
parent 8d0a800391
commit 4807f978e5
3 changed files with 5 additions and 2 deletions

View File

@ -1029,6 +1029,7 @@ Marco Schl
for fixing missing audio after replaying a DVD for fixing missing audio after replaying a DVD
for pointing out that it is unnecessary to add section filters to the list of for pointing out that it is unnecessary to add section filters to the list of
filters if they can't be opened filters if they can't be opened
for fixing handling error case '-1' when polling section filters
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

View File

@ -2949,3 +2949,5 @@ Video Disk Recorder Revision History
to Reinhard Nissl for reporting this one). to Reinhard Nissl for reporting this one).
- No longer adding section filters to the list of filters if they can't be opened - No longer adding section filters to the list of filters if they can't be opened
(thanks to Marco Schlüßler for pointing this out). (thanks to Marco Schlüßler for pointing this out).
- Fixed handling error case '-1' when polling section filters (thanks to Marco
Schlüßler).

View File

@ -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: sections.c 1.6 2004/07/17 14:17:07 kls Exp $ * $Id: sections.c 1.7 2004/07/17 14:26:32 kls Exp $
*/ */
#include "sections.h" #include "sections.h"
@ -172,7 +172,7 @@ void cSectionHandler::Action(void)
int oldStatusCount = statusCount; int oldStatusCount = statusCount;
Unlock(); Unlock();
if (poll(pfd, NumFilters, 1000) != 0) { if (poll(pfd, NumFilters, 1000) > 0) {
bool DeviceHasLock = device->HasLock(); bool DeviceHasLock = device->HasLock();
if (!DeviceHasLock) if (!DeviceHasLock)
usleep(100000); usleep(100000);