summaryrefslogtreecommitdiff
path: root/2005/i
diff options
context:
space:
mode:
authorgaillaro2005-06-16 21:02:35 +0000
committergaillaro2005-06-16 21:02:35 +0000
commit5110f459cf948439aa934b3a7541854661b0db43 (patch)
tree9944677db4a323a4a70a949a605b5250562c4b65 /2005/i
parent312e73d4838863844e82b536584101c9279b5bdb (diff)
commit bug sans camera
Diffstat (limited to '2005/i')
-rw-r--r--2005/i/robert/src/video4linux/video4linux.cc2
1 files changed, 1 insertions, 1 deletions
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;