From 5110f459cf948439aa934b3a7541854661b0db43 Mon Sep 17 00:00:00 2001 From: gaillaro Date: Thu, 16 Jun 2005 21:02:35 +0000 Subject: commit bug sans camera --- 2005/i/robert/src/video4linux/video4linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2005/i') diff --git a/2005/i/robert/src/video4linux/video4linux.cc b/2005/i/robert/src/video4linux/video4linux.cc index 70352e9..6fa9831 100644 --- a/2005/i/robert/src/video4linux/video4linux.cc +++ b/2005/i/robert/src/video4linux/video4linux.cc @@ -166,7 +166,7 @@ Video4Linux::open (const char *dev) if (fd_ != -1) close (); fd_ = ::open (dev, O_RDWR); - if (fd_ == -1) + if (fd_ < 0) throw errno_exception (dev, errno); // Récupères les infos sur la camera. video_window win; -- cgit v1.2.3