build error

This commit is contained in:
David Rose 2010-07-26 21:34:31 +00:00
parent e14039fdbd
commit 306d4a8337
1 changed files with 2 additions and 0 deletions

View File

@ -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);