Browse Source

build error

David Rose 15 years ago
parent
commit
306d4a8337
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/vision/webcamVideoCursorV4L.cxx

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

@@ -137,7 +137,9 @@ WebcamVideoCursorV4L(WebcamVideoV4L *src) : MovieVideoCursor(src) {
   _ready = false;
   _format = (struct v4l2_format *) malloc(sizeof(struct v4l2_format));
   memset(_format, 0, sizeof(struct v4l2_format));
+#ifdef HAVE_JPEG
   _cinfo = NULL;
+#endif
   _buffers = NULL;
   _buflens = NULL;
   _fd = open(src->_device.c_str(), O_RDWR);