[Sumover-dev] [svn commit] r4700 - vic/branches/mpeg4/video

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Sun Mar 21 02:21:48 GMT 2010


Author: douglask
Date: Sun Mar 21 02:21:47 2010
New Revision: 4700

Modified:
   vic/branches/mpeg4/video/grabber-v4l2.cpp

Log:
Workaround for the broken UVC driver which still ships with Ubuntu


Modified: vic/branches/mpeg4/video/grabber-v4l2.cpp
==============================================================================
--- vic/branches/mpeg4/video/grabber-v4l2.cpp	(original)
+++ vic/branches/mpeg4/video/grabber-v4l2.cpp	Sun Mar 21 02:21:47 2010
@@ -19,7 +19,7 @@
 
      Added support for MJPEG/JPEG.
      Added gamma and gain controls.
-     by Douglas Kosovic <douglask at itee.uq.edu.au>
+     by Douglas Kosovic <doug at uq.edu.au>
      MJPEG/JPEG support uses Tiny Jpeg Decoder from :
      http://www.saillard.org/programs_and_patches/tinyjpegdecoder/
 
@@ -471,6 +471,12 @@
         decimate_  = 2;
         running_   = 0;
 
+        v4l2_close(fd_);
+        fd_ = v4l2_open(dev, O_RDWR);
+        if (fd_ < 0) {
+                perror("open");
+                return;
+        }
 }
 
 



More information about the Sumover-dev mailing list