On Fri, 2002-03-22 at 15:04, Gerd Knorr wrote: > > Am I wrong here? Or is the v4l2 API documentation > > (http://thedirks.org/v4l2/) outdated and has this been changed? > > Hasn't changed. But while looking at it: Maybe we should make the > block / nonblock behaviour depend on the file flags? i.e. don't block > if O_NONBLOCK is set, and block otherwise, thus give DQBUF the same > semantics read() has. Comments? Sounds good... (dumb question: How do I check whether the device was opened with O_NONBLOCK (or O_NOIO) or not?) > > 2) Would it be possible (i.e. allowed) to include a special case > > VIDIOC_QBUF with index = -1 in the zoran driver which means to dequeue > > (as in 'cancel these queues', not as in 'sync on all buffers') all > > buffers and thus effectively stop capturing directly? This is what the > > zoran driver is able to do in v4l1 and it'd be nice to have a similar > > feature in v4l2. Is this allowed? > > Just do STREAMOFF to stop capture. Yup, you're right. Thanks. Ronald -- - .-. - /V\ | Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx> - // \\ | Running: Linux 2.4.18-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^