cFrontend: ignore empty frontend events

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3947ac3763
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-09-23 (Sun, 23 Sep 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-09-23 21:38:54 +02:00
parent 3a153918dd
commit 3c6c97779b

View File

@@ -471,7 +471,6 @@ struct dvb_frontend_event CFrontend::getEvent(void)
}
if (pfd.revents & (POLLIN | POLLPRI)) {
FE_TIMER_STOP("poll has event after");
memset(&event, 0, sizeof(struct dvb_frontend_event));
//fop(ioctl, FE_READ_STATUS, &event.status);
@@ -481,6 +480,9 @@ struct dvb_frontend_event CFrontend::getEvent(void)
continue;
}
//printf("[fe%d] poll events %d status %x\n", fenumber, pfd.revents, event.status);
if (event.status == 0) /* some drivers always deliver an empty event after tune */
continue;
FE_TIMER_STOP("poll has event after");
if (event.status & FE_HAS_LOCK) {
printf("[fe%d] ****************************** FE_HAS_LOCK: freq %lu\n", fenumber, (long unsigned int)event.parameters.frequency);