On Sat, Aug 27, 2005 at 01:56:54PM +0100, Allan Stirling wrote: > > >+ fe_status_t tmp_stat; > >+ memset(&tmp_stat, 0, sizeof(fe_status_t)); > >+ if (ioctl(fd,FE_READ_STATUS, &tmp_stat)) { > >+ if (tmp_stat == FE_HAS_LOCK) > >+ return true; > I don't see how. Don't you mean: > > if (tmp_stat & FE_HAS_LOCK) > return true; > > Since the rest of the lock status isn't always 0... >
No that's correct. FE_READ_STATUS returns an fe_status_t which is only an enum. See include/linux/dvb/frontend.h in your kernel headers... Stuart
_______________________________________________ mythtv-dev mailing list mythtv-dev@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev