[libbluray-devel] commit: Use named initializers for struct (hpi1 )

git at videolan.org git at videolan.org
Mon Nov 15 14:35:07 CET 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Nov 15 15:01:49 2010 +0200| [254d7b9a24a52da32448088a124e57f664a3e685] | committer: hpi1 

Use named initializers for struct

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=254d7b9a24a52da32448088a124e57f664a3e685
---

 src/libbluray/decoders/graphics_controller.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index ad42db1..df250f7 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -76,7 +76,17 @@ static void _gc_clear_osd(GRAPHICS_CONTROLLER *gc, int plane)
 {
     if (gc->overlay_proc) {
         /* clear plane */
-        BD_OVERLAY ov = { -1, plane, 0, 0, 1920, 1080, NULL, NULL };
+        const BD_OVERLAY ov = {
+            .pts     = -1,
+            .plane   = plane,
+            .x       = 0,
+            .y       = 0,
+            .w       = 1920,
+            .h       = 1080,
+            .palette = NULL,
+            .img     = NULL,
+        };
+
         gc->overlay_proc(gc->overlay_proc_handle, &ov);
     }
 



More information about the libbluray-devel mailing list