Skip to contentSkip to conversation

How to detect USB camera disconnection?

DISCUSSION Nilo Roberto C Paim 1 participant 1 message Aug 20, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi, all.

I've a Vimicro USB cam that I'm constantly pooling for taking snapshots using an application made by me. How can I programmatically detect when the cam is disconnected?

It seems to me that V4L "thinks" that the cam is still there, even with the cable disconnected.

Any hints?

Nilo Roberto C Paim

[email protected]

TinyCOBOL - Equipe de Desenvolvimento

Porto Alegre - RS - Brasil

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list