[vlc-commits] video_output/flaschen: Display: merge declaration and initialization

Filip Roséen git at videolan.org
Mon Mar 6 09:09:58 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Sun Feb 26 16:56:14 2017 +0100| [8d06c1b126b20bddec563580eba8ea70bea85e5b] | committer: Jean-Baptiste Kempf

video_output/flaschen: Display: merge declaration and initialization

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_output/flaschen.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/modules/video_output/flaschen.c b/modules/video_output/flaschen.c
index 2eeffab..b3bb0a0 100644
--- a/modules/video_output/flaschen.c
+++ b/modules/video_output/flaschen.c
@@ -204,14 +204,14 @@ static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
         src += picture->p->i_pitch;
     }
 
-    struct msghdr hdr;
-    hdr.msg_name = NULL;
-    hdr.msg_namelen = 0;
-    hdr.msg_iov = iov;
-    hdr.msg_iovlen = iovcnt;
-    hdr.msg_control = NULL;
-    hdr.msg_controllen = 0;
-    hdr.msg_flags = 0;
+    struct msghdr hdr = {
+        .msg_name = NULL,
+        .msg_namelen = 0,
+        .msg_iov = iov,
+        .msg_iovlen = iovcnt,
+        .msg_control = NULL,
+        .msg_controllen = 0,
+        .msg_flags = 0 };
 
     result = sendmsg(sys->fd, &hdr, 0);
     if (result < 0)



More information about the vlc-commits mailing list