svn commit: r377885 - head/multimedia/zoneminder/files
Koop Mast
kwm at FreeBSD.org
Sun Jan 25 11:57:32 UTC 2015
Author: kwm
Date: Sun Jan 25 11:57:31 2015
New Revision: 377885
URL: https://svnweb.freebsd.org/changeset/ports/377885
QAT: https://qat.redports.org/buildarchive/r377885/
Log:
Add patch to allow for building with newer libv4l.
https://reviews.freebsd.org/D1482
Obtained from: upstream
Added:
head/multimedia/zoneminder/files/patch-src_zm-local-camera.cpp (contents, props changed)
Added: head/multimedia/zoneminder/files/patch-src_zm-local-camera.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/multimedia/zoneminder/files/patch-src_zm-local-camera.cpp Sun Jan 25 11:57:31 2015 (r377885)
@@ -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) );
+ }
More information about the svn-ports-head
mailing list