Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: FE_GET_EVENT to clear frontend event queue: onlyfor QPSK?



Johannes Stezenbach wrote:

Nico Sabbi wrote:

of the current ?zap applications only szap uses FE_GET_EVENT to clear the event queue before tuning;
tzap and czap don't.
Is there a particular reason for this? Clearing an event queue seems to be a reasonably common
thing to do.

Actually in the current szap.c it is pointless to clear the event queue
as the code does not wait for events later. You can look at szap.c
how I originally wrote it (following the Nokia API spec), where
this actually made sense:
http://linuxtv.org/cgi-bin/cvsweb.cgi/DVB/apps/szap/szap.c?rev=1.1

But I agree with Holger that the contents of struct dvb_frontend_event
(and thus the event queue) is rather uninteresting, what counts
is that you get a notification of changes in frontend status
via poll()/select(), and you can then get the current status
via FE_READ_STATUS.

Johannes




a couple of hours ago I fixed dvbstream and dvbtune in cvs.
Tomorrow will be mplayer's turn.

Thanks,
   Nico




Home | Main Index | Thread Index