[vlc-commits] Fix V4L2 compilation with some GCC versions

Pierre Ynard git at videolan.org
Sun Oct 2 12:37:52 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Oct  2 13:36:50 2011 +0300| [cd86cb3d268e6a62f2dfa4688e362daec816609f] | committer: Rémi Denis-Courmont

Fix V4L2 compilation with some GCC versions

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd86cb3d268e6a62f2dfa4688e362daec816609f
---

 modules/access/v4l2/controls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/v4l2/controls.c b/modules/access/v4l2/controls.c
index 9d4ad2a..2f34456 100644
--- a/modules/access/v4l2/controls.c
+++ b/modules/access/v4l2/controls.c
@@ -106,8 +106,8 @@ static int ControlSet64 (const vlc_v4l2_ctrl_t *c, int64_t value)
     struct v4l2_ext_control ext_ctrl = {
         .id = c->id,
         .size = 0,
-        .value64 = value,
     };
+    ext_ctrl.value64 = value;
     struct v4l2_ext_controls ext_ctrls = {
         .ctrl_class = V4L2_CTRL_ID2CLASS(c->id),
         .count = 1,



More information about the vlc-commits mailing list