|
From: <lin...@us...> - 2003-01-16 07:51:44
|
Update of /cvsroot/dvbtools/dvbstream
In directory sc8-pr-cvs1:/tmp/cvs-serv14463a
Modified Files:
tune.c
Log Message:
Ignore EOVERFLOW errors - patch by Andrew de Quincey
Index: tune.c
===================================================================
RCS file: /cvsroot/dvbtools/dvbstream/tune.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** tune.c 13 Oct 2002 18:39:53 -0000 1.9
--- tune.c 16 Jan 2003 07:51:41 -0000 1.10
***************
*** 27,30 ****
--- 27,31 ----
#include <unistd.h>
#include <error.h>
+ #include <errno.h>
#ifdef NEWSTRUCT
***************
*** 175,178 ****
--- 176,180 ----
struct dvb_frontend_info fe_info;
struct pollfd pfd[1];
+ int status;
if (ioctl(fd_frontend,FE_SET_FRONTEND,feparams) < 0) {
***************
*** 190,196 ****
if (pfd[0].revents & POLLIN){
fprintf(stderr,"Getting frontend event\n");
! if ( ioctl(fd_frontend, FE_GET_EVENT, &event) < 0){
! perror("FE_GET_EVENT");
! return -1;
}
}
--- 192,200 ----
if (pfd[0].revents & POLLIN){
fprintf(stderr,"Getting frontend event\n");
! if (status = ioctl(fd_frontend, FE_GET_EVENT, &event) < 0){
! if (status != -EOVERFLOW) {
! perror("FE_GET_EVENT");
! return -1;
! }
}
}
|