]> git.sesse.net Git - vlc/commitdiff
Fix V4L2 compilation with some GCC versions
authorPierre Ynard <linkfanel@yahoo.fr>
Sun, 2 Oct 2011 10:36:50 +0000 (13:36 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 2 Oct 2011 10:37:42 +0000 (13:37 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/access/v4l2/controls.c

index 9d4ad2ae482ba44729a46f75848b20a66ce1bb8c..2f34456149a9c5abe852a220a6b0d8ea41ea9c4c 100644 (file)
@@ -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,