Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 83036040567a4ea6c0fca07cb4614dc3 > files > 6

zoneminder-1.25.0-23.mga3.src.rpm

--- src/zm_local_camera.cpp~	2012-09-11 12:41:09.711153916 +0100
+++ src/zm_local_camera.cpp	2012-09-11 12:41:09.725153941 +0100
@@ -1048,7 +1048,8 @@
     {
         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_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) );
 
@@ -1931,7 +1932,8 @@
 
         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_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) );
     }