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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

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?

  if (v4l2_ioctl (pool->video_fd, VIDIOC_DQBUF, &buffer) >=0) {
  }

Thanks,
Yiliang
Reply | Threaded
Open this post in threaded view
|

Re: v4l2src question, is a frame returned with error (EIO) from dqbuf ioctl sent back to driver?

Stefan Sauer
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® 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: v4l2src question, is a frame returned with error (EIO) from dqbuf ioctl sent back to driver?

yiliang
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 <[hidden email]> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel