[gst-devel] v4l2src question, is a frame returned with error (EIO) from dqbuf ioctl sent back to driver?

Yiliang Bao yiliangb at gmail.com
Thu Mar 25 22:13:46 CET 2010


Hi Stefen,

This is quite strange. In a v4l2 driver I am testing, if I set the frame
buffer state to VIDEOBUF_ERROR instead of VIDEOBUF_DONE when a DMA error is
detected, some buffers are lost and never sent back through qbuf ioctl
again. If I ignore the error, the driver runs fine. Let me check it again.

Thanks!
Yiliang

On Thu, Mar 25, 2010 at 1:30 PM, Stefan Kost <ensonic at hora-obscura.de>wrote:

> Am 25.03.2010 11:35, schrieb yiliang:
> >
> > Hi,
> >
> > In gst_v4l2_buffer_pool_dqbuf, if the following system call return a
> buffer,
> > but with an error such as -EIO, will v4l2src re-queue the buffer to
> driver?
>
> yes.
>
> Stefan
> >
> >   if (v4l2_ioctl (pool->video_fd, VIDIOC_DQBUF, &buffer) >=0) {
> >   }
> >
> > Thanks,
> > Yiliang
> >
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100325/186a2832/attachment.htm>


More information about the gstreamer-devel mailing list