[FFmpeg-devel] [PATCH] lavd/v4l2: silence libv4l2 logging

Stefano Sabatini stefasab at gmail.com
Sat Mar 9 16:19:36 CET 2013


On date Saturday 2013-03-09 12:02:51 +0100, Giorgio Vazzana encoded:
> 2013/3/8 Stefano Sabatini <stefasab at gmail.com>:
> > On date Friday 2013-03-08 13:06:57 +0100, Giorgio Vazzana encoded:
> >> 2013/3/8 Giorgio Vazzana <mywing81 at gmail.com>:
> >> > Hello,
> >> >
> >> > a user pointed out in ticket #1570 that when ffmpeg is compiled with
> >> > --enable-lib4vl2 the terminal gets spammed with this message:
> >> >
> >> > libv4l2: error dequeuing buf: Resource temporarily unavailable
> >> >
> >

> >> > This is because libv4l2 opens the device in non-blocking mode, so the
> >> > ioctl VIDIOC_DQBUF returns EINVAL and that message gets displayed.
> 
> Sorry, returns EAGAIN of course, not EINVAL.

Ah sure, if it is EAGAIN than it makes sense as is.
 
> > What about disabling the call under #if CONFIG_LIBV4L2?
> 
> Hmm, which call exactly?
> 
> > Then I suppose it is OK to disable logging, if we can't integrate it
> > with our logging system through a log wrapper.
> 
> Ok.
-- 
FFmpeg = Frightening and Fundamentalist Muttering Philosophical Extreme Governor


More information about the ffmpeg-devel mailing list