[vlc-devel] commit: Name another anonynous union ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 30 16:26:14 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 30 17:25:51 2010 +0200| [65ede56bf28dfb2d5d371903a0b10e27880cbcc6] | committer: Rémi Denis-Courmont 

Name another anonynous union

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

 include/vlc_vout_window.h         |    4 ++--
 modules/gui/qt4/qt4.cpp           |    2 +-
 modules/video_output/xcb/common.c |    2 +-
 modules/video_output/xcb/glx.c    |    2 +-
 modules/video_output/xcb/window.c |    4 ++--
 src/video_output/window.c         |    2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h
index 53e3665..84d78ee 100644
--- a/include/vlc_vout_window.h
+++ b/include/vlc_vout_window.h
@@ -94,8 +94,8 @@ struct vout_window_t {
 
     /* display server (mandatory) */
     union {
-        char     *x11_display; /* X11 display (NULL = use default) */
-    };
+        char     *x11; /* X11 display (NULL = use default) */
+    } display;
 
     /* Control on the module (mandatory)
      *
diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 904c363..02bc401 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -540,7 +540,7 @@ static int WindowOpen( vlc_object_t *p_obj )
     p_wnd->handle.xid = p_mi->getVideo( &i_x, &i_y, &i_width, &i_height );
     if( !p_wnd->handle.xid )
         return VLC_EGENERIC;
-    p_wnd->x11_display = x11_display;
+    p_wnd->display.x11 = x11_display;
 
 #elif defined (Q_WS_WIN)
     p_wnd->handle.hwnd = p_mi->getVideo( &i_x, &i_y, &i_width, &i_height );
diff --git a/modules/video_output/xcb/common.c b/modules/video_output/xcb/common.c
index 4ebc26d..9b714f6 100644
--- a/modules/video_output/xcb/common.c
+++ b/modules/video_output/xcb/common.c
@@ -135,7 +135,7 @@ vout_window_t *GetWindow (vout_display_t *vd,
         return NULL;
     }
 
-    xcb_connection_t *conn = Connect (VLC_OBJECT(vd), wnd->x11_display);
+    xcb_connection_t *conn = Connect (VLC_OBJECT(vd), wnd->display.x11);
     if (conn == NULL)
         goto error;
     *pconn = conn;
diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index e018a0f..879335f 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -220,7 +220,7 @@ static int Open (vlc_object_t *obj)
     }
 
     /* Connect to X server */
-    Display *dpy = XOpenDisplay (sys->embed->x11_display);
+    Display *dpy = XOpenDisplay (sys->embed->display.x11);
     if (dpy == NULL)
     {
         vout_display_DeleteWindow (vd, sys->embed);
diff --git a/modules/video_output/xcb/window.c b/modules/video_output/xcb/window.c
index 4bf2dce..57f13df 100644
--- a/modules/video_output/xcb/window.c
+++ b/modules/video_output/xcb/window.c
@@ -265,7 +265,7 @@ static int Open (vlc_object_t *obj)
     }
 
     wnd->handle.xid = window;
-    wnd->x11_display = display;
+    wnd->display.x11 = display;
     wnd->control = Control;
     wnd->sys = p_sys;
 
@@ -374,7 +374,7 @@ static void Close (vlc_object_t *obj)
         DestroyKeyHandler (p_sys->keys);
     }
     xcb_disconnect (conn);
-    free (wnd->x11_display);
+    free (wnd->display.x11);
     free (p_sys);
 }
 
diff --git a/src/video_output/window.c b/src/video_output/window.c
index 093bad5..a783df5 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -67,7 +67,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
     case VOUT_WINDOW_TYPE_XID:
         type = "vout window xid";
         window->handle.xid = 0;
-        window->x11_display = NULL;
+        window->display.x11 = NULL;
         break;
     default:
         assert(0);




More information about the vlc-devel mailing list