On Wed, 17 May 2000, Mark McClelland wrote:

> I have seen xawtv die this way when I disconnect and reconnect the
> camera while it is running, which is somewhat similar to overloading
> the CPU and causing xawtv to miss a frame I guess.

xawtv is very sensitive to ioctl failures. If even one VIDIOCMCAPTURE call
fails then xawtv stops. I have a small workaround in IBM camera driver. If
a frame fails to arrive in time (which can be caused by lots of natural
reasons - such as low light or large video size) then I return success
anyway, as long as I know that the camera is alive and reasonably well.  

Most likely xawtv was originally designed for TV grabbers, and there
missing frame (at 30 FPS) was a sure sign of something bad happening.
Probably this should be fixed in xawtv - there is no reason to stop
capturing if a mere frame was late.

Thanks,
Dmitri


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to