[MPlayer-dev-eng] [PATCH] Fix V4L2 buffer operations and tuner handling

Laurent Pinchart laurent.pinchart at skynet.be
Tue Dec 5 23:09:04 CET 2006


Hi everybody,

this patch fixes problems with video acquisition through the V4L2 API. Two 
separate issues are addressed, which prevented MPlayer from working with UVC 
(USB Video Class) devices.

- Many V4L2 devices (mostly webcams) have no tuner. For those devices the 
concept of norm just doesn't apply. VIDIOC_G_STD should not be called for 
those tuner-less devices.

- The buffer management (using VIDIOC_QBUF, VIDIOC_DQBUF and VIDIOC_REQBUFS) 
code doesn't set the buffer memory type to V4L2_MEMORY_MMAP. While many 
drivers fails to check the parameter, it is nonetheless mandatory to set it 
to the correct value.

Credits for this patch goes to Maciej Bliziński. I'm submitting it as the 
Linux UVC driver maintainer because the latest MPlayer release still contains 
the bugs and many Linux UVC users are complaining.

Best regards,

Laurent Pinchart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tvi_v4l2.patch
Type: text/x-diff
Size: 3056 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061205/234eb16e/attachment.patch>


More information about the MPlayer-dev-eng mailing list