buggy v4l apps (was: VIDIOCSYNC and bad data)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



This doesn't really help your case, but to other people...

Thomas wrote:
>VIDIOCMCAPTURE( 0 )
>while()
>{
>	VIDIOCMCAPTURE( 1 )
>	VIDIOCSYNC( 0 )
>
>	VIDIOCMCAPTURE( 0 )
>	VIDIOCSYNC( 1 )
>}

please notice that this is BUGGY code. It doesn't work if the driver
provides only one buffer (which is specifically allowed by the API docs).
I have seen too many applications with this bug:
avifile, camstream, effectv, gnomemeeting, gstreamer, motion, vic.

For motion a fix patch is available from my homepage.




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux