From: Jean-Francois Moine <moinejf@free.fr>
To: "Nilo Roberto C Paim" <nilopaim@gmail.com>
Cc: video4linux-list@redhat.com
Subject: Re: How to detect USB camera disconnection?
Date: Fri, 21 Aug 2009 10:39:25 +0200 [thread overview]
Message-ID: <20090821103925.038c98ce@tele> (raw)
In-Reply-To: <004a01ca21b6$e3cabe80$ab603b80$@com>
On Thu, 20 Aug 2009 13:54:26 -0300
"Nilo Roberto C Paim" <nilopaim@gmail.com> wrote:
> 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.
>
> --- > I'd forgot to say: the driver I'm using is gspca, last
> version. Works like a charm. My problem is related to cable's cam
> disconnected.
Hi Nilo,
I don't know how you poll. Normally, when the webcam is disconnected,
the I/O calls should fail with errno = NODEV.
Cheers.
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2009-08-21 8:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-20 16:54 ENC: How to detect USB camera disconnection? Nilo Roberto C Paim
2009-08-21 8:39 ` Jean-Francois Moine [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-08-20 14:51 Nilo Roberto C Paim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090821103925.038c98ce@tele \
--to=moinejf@free.fr \
--cc=nilopaim@gmail.com \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox