mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Simplified the error handling in cDvbTuner::GetFrontendStatus()
This commit is contained in:
parent
7b59d84be3
commit
1a4456d981
2
HISTORY
2
HISTORY
@ -5121,3 +5121,5 @@ Video Disk Recorder Revision History
|
|||||||
renamed to "MenuKeyCloses", accordingly. This will result in an "unknown config
|
renamed to "MenuKeyCloses", accordingly. This will result in an "unknown config
|
||||||
parameter: MenuButtonCloses" error message in the log file, so you may want to
|
parameter: MenuButtonCloses" error message in the log file, so you may want to
|
||||||
remove that entry from your 'setup.conf' file.
|
remove that entry from your 'setup.conf' file.
|
||||||
|
- Simplified the error handling in cDvbTuner::GetFrontendStatus() (based on a
|
||||||
|
discussion with Reinhard Nissl).
|
||||||
|
@ -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: dvbdevice.c 1.163 2007/02/24 11:20:42 kls Exp $
|
* $Id: dvbdevice.c 1.164 2007/02/25 11:46:52 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbdevice.h"
|
#include "dvbdevice.h"
|
||||||
@ -156,10 +156,9 @@ bool cDvbTuner::GetFrontendStatus(fe_status_t &Status, int TimeoutMs)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (1) {
|
while (1) {
|
||||||
int stat = ioctl(fd_frontend, FE_READ_STATUS, &Status);
|
if (ioctl(fd_frontend, FE_READ_STATUS, &Status) != -1)
|
||||||
if (stat == 0)
|
|
||||||
return true;
|
return true;
|
||||||
if (stat > 0 || errno != EINTR)
|
if (errno != EINTR)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user