[packages/mediastreamer] - added werror patch (silence gcc warning)
qboosh
qboosh at pld-linux.org
Thu Mar 31 19:02:55 CEST 2016
commit 5451b942531bff4c14332dc7829fb1c478ec8608
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Mar 31 19:02:55 2016 +0200
- added werror patch (silence gcc warning)
mediastreamer-werror.patch | 11 +++++++++++
mediastreamer.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/mediastreamer.spec b/mediastreamer.spec
index d7b60e3..8dcdcc5 100644
--- a/mediastreamer.spec
+++ b/mediastreamer.spec
@@ -27,6 +27,7 @@ Source0: http://download-mirror.savannah.gnu.org/releases/linphone/mediastreamer
# Source0-md5: 1ca115e94a718638fbecf8352c169861
Patch0: %{name}-imagedir.patch
Patch1: %{name}-ffmpeg.patch
+Patch2: %{name}-werror.patch
URL: http://www.linphone.org/technical-corner/mediastreamer2/overview
%{?with_opengl:BuildRequires: OpenGL-GLX-devel}
BuildRequires: SDL-devel >= 1.2.0
@@ -142,6 +143,7 @@ Statyczne biblioteki mediastreamer.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
diff --git a/mediastreamer-werror.patch b/mediastreamer-werror.patch
new file mode 100644
index 0000000..f7f7fbf
--- /dev/null
+++ b/mediastreamer-werror.patch
@@ -0,0 +1,11 @@
+--- mediastreamer-2.12.1/src/videofilters/msv4l2.c.orig 2015-10-19 13:42:10.603994267 +0200
++++ mediastreamer-2.12.1/src/videofilters/msv4l2.c 2016-03-31 18:44:22.923935372 +0200
+@@ -343,7 +343,7 @@
+
+ static int set_camera_feature(V4l2State *s, unsigned int ctl_id, int value, const char *feature_name){
+ struct v4l2_ext_control ctl={0};
+- struct v4l2_ext_controls ctls={0};
++ struct v4l2_ext_controls ctls={{0}};
+ struct v4l2_queryctrl queryctrl={0};
+
+ queryctrl.id = ctl_id;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mediastreamer.git/commitdiff/5451b942531bff4c14332dc7829fb1c478ec8608
More information about the pld-cvs-commit
mailing list