From bd5e2da5c7600d8434b1e308152974cafa254ec8 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 29 Apr 2013 13:29:51 -0400 Subject: [PATCH] fix for kernel3.5 --- src/zm_local_camera.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_local_camera.cpp b/src/zm_local_camera.cpp index 49d08d3a6..ae7b2ecec 100644 --- a/src/zm_local_camera.cpp +++ b/src/zm_local_camera.cpp @@ -741,7 +741,7 @@ void LocalCamera::Terminate() { Debug( 3, "Terminating video stream" ); //enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - enum v4l2_buf_type type = v4l2_data.fmt.type; + enum v4l2_buf_type type = (v4l2_buf_type)v4l2_data.fmt.type; if ( vidioctl( vid_fd, VIDIOC_STREAMOFF, &type ) < 0 ) Error( "Failed to stop capture stream: %s", strerror(errno) ); @@ -1521,7 +1521,7 @@ int LocalCamera::PrimeCapture() Debug( 3, "Starting video stream" ); //enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - enum v4l2_buf_type type = v4l2_data.fmt.type; + enum v4l2_buf_type type = (v4l2_buf_type)v4l2_data.fmt.type; if ( vidioctl( vid_fd, VIDIOC_STREAMON, &type ) < 0 ) Fatal( "Failed to start capture stream: %s", strerror(errno) ); }