diff options
author | kwm <kwm@FreeBSD.org> | 2015-01-25 19:57:31 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2015-01-25 19:57:31 +0800 |
commit | 23932f9a97c8846e00b38d487b5241647651d298 (patch) | |
tree | 89665d7bacbf7390d0e0f14e69b8eb14e89e498b /multimedia | |
parent | e1e07e6af137cbd38b1b2f9fdf22bbaba7dd18af (diff) | |
download | freebsd-ports-graphics-23932f9a97c8846e00b38d487b5241647651d298.tar.gz freebsd-ports-graphics-23932f9a97c8846e00b38d487b5241647651d298.tar.zst freebsd-ports-graphics-23932f9a97c8846e00b38d487b5241647651d298.zip |
Add patch to allow for building with newer libv4l.
https://reviews.freebsd.org/D1482
Obtained from: upstream
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/zoneminder/files/patch-src_zm-local-camera.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/zoneminder/files/patch-src_zm-local-camera.cpp b/multimedia/zoneminder/files/patch-src_zm-local-camera.cpp new file mode 100644 index 00000000000..c95b427290a --- /dev/null +++ b/multimedia/zoneminder/files/patch-src_zm-local-camera.cpp @@ -0,0 +1,20 @@ +--- src/zm_local_camera.cpp.orig 2015-01-25 12:05:37.455924920 +0100 ++++ src/zm_local_camera.cpp 2015-01-25 12:06:24.903920783 +0100 +@@ -739,7 +739,7 @@ + { + 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) ); + +@@ -1519,7 +1519,7 @@ + + 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) ); + } |