Browse Source

hopefully remove dependency on v4l 1

rdb 14 years ago
parent
commit
d30f60c70f
2 changed files with 0 additions and 10 deletions
  1. 0 1
      panda/src/vision/webcamVideoCursorV4L.cxx
  2. 0 9
      panda/src/vision/webcamVideoV4L.cxx

+ 0 - 1
panda/src/vision/webcamVideoCursorV4L.cxx

@@ -19,7 +19,6 @@
 #include <fcntl.h>
 #include <sys/mman.h>
 #include <sys/ioctl.h>
-#include <linux/videodev.h>
 #include <linux/videodev2.h>
 
 #ifdef HAVE_JPEG

+ 0 - 9
panda/src/vision/webcamVideoV4L.cxx

@@ -21,7 +21,6 @@
 
 #include <fcntl.h>
 #include <sys/ioctl.h>
-#include <linux/videodev.h>
 #include <linux/videodev2.h>
 
 TypeHandle WebcamVideoV4L::_type_handle;
@@ -113,14 +112,6 @@ void find_all_webcams_v4l() {
           continue;
         }
       }
-
-      // Check for Video4Linux capabilities
-      if (ioctl(fd, VIDIOCGCAP, &cap) != -1) {
-        if (cap.type & VID_TYPE_CAPTURE) {
-          //TODO: Video4Linux support
-          continue;
-        }
-      }
     }
     close(fd);
   }