<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 20, 2019 at 4:52 PM Zebediah Figura <<a href="mailto:z.figura12@gmail.com">z.figura12@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 4/20/19 8:15 AM, Damjan Jovanovic wrote:<br>
> Recent changes to qcap/v4l.c resulted in the removal of mmap()<br>
> for v4l2 devices, but read() is optional for device drivers and<br>
> some don't support it. This isn't a major problem with the<br>
> presense of libv4l2 though, as it can emulate read() on top of<br>
> mmap(). However the code checks whether the device can read(),<br>
> and if not, doesn't even try to use it, even though it can.<br>
> <br>
> Fix this by only warning that read() is being emulated, and<br>
> continuing with libv4l2 if available.<br>
> <br>
> Also clarifies the logging.<br>
> <br>
> Signed-off-by: Damjan Jovanovic <<a href="mailto:damjan.jov@gmail.com" target="_blank">damjan.jov@gmail.com</a>><br>
> ---<br>
>   dlls/qcap/v4l.c | 13 ++++++++-----<br>
>   1 file changed, 8 insertions(+), 5 deletions(-)<br>
> <br>
> <br>
> <br>
<br>
This doesn't seem right; libv4l2 should massage the result of <br>
VIDIOC_QUERYCAP to include V4L2_CAP_READWRITE. See <br>
<<a href="https://git.linuxtv.org/v4l-utils.git/tree/lib/libv4l2/libv4l2.c#n1210" rel="noreferrer" target="_blank">https://git.linuxtv.org/v4l-utils.git/tree/lib/libv4l2/libv4l2.c#n1210</a>>.<br>
<br></blockquote><div><br></div><div>On FreeBSD 11.2 with libv4l-1.6.3_4, that is certainly NOT the case. It could be a newer or not yet released feature.<br></div><div><br></div></div></div>