summaryrefslogtreecommitdiff
path: root/2005/i/robert/src
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src')
-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;