> > +<pre> > > +/* setup everything */ > > +VIDIOCMCAPTURE(0) > > +while (whatever) { > > + VIDIOCMCAPTURE(1) > > + VIDIOCSYNC(0) > > + /* process frame 0 while the hardware captures frame 1 */ > > + VIDIOCMCAPTURE(0) > > + VIDIOCSYNC(1) > > + /* process frame 1 while the hardware captures frame 0 */ > > +} > > +</pre> > Maybe a bit picky, but I don't like the example. Perhaps an example > that uses the number of frames returned by GMBUF. These apps hardcoded > to two frames are a headache... Hmm, I want to keep it as simple and short as possible. Any useful usage of more than just two buffers makes the code longer and harder to read ... Gerd -- #define ENOCLUE 125 /* userland programmer induced race condition */