Commit 65ede56b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Name another anonynous union

parent e175dcbb
...@@ -94,8 +94,8 @@ struct vout_window_t { ...@@ -94,8 +94,8 @@ struct vout_window_t {
/* display server (mandatory) */ /* display server (mandatory) */
union { union {
char *x11_display; /* X11 display (NULL = use default) */ char *x11; /* X11 display (NULL = use default) */
}; } display;
/* Control on the module (mandatory) /* Control on the module (mandatory)
* *
......
...@@ -540,7 +540,7 @@ static int WindowOpen( vlc_object_t *p_obj ) ...@@ -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 ); p_wnd->handle.xid = p_mi->getVideo( &i_x, &i_y, &i_width, &i_height );
if( !p_wnd->handle.xid ) if( !p_wnd->handle.xid )
return VLC_EGENERIC; return VLC_EGENERIC;
p_wnd->x11_display = x11_display; p_wnd->display.x11 = x11_display;
#elif defined (Q_WS_WIN) #elif defined (Q_WS_WIN)
p_wnd->handle.hwnd = p_mi->getVideo( &i_x, &i_y, &i_width, &i_height ); p_wnd->handle.hwnd = p_mi->getVideo( &i_x, &i_y, &i_width, &i_height );
......
...@@ -135,7 +135,7 @@ vout_window_t *GetWindow (vout_display_t *vd, ...@@ -135,7 +135,7 @@ vout_window_t *GetWindow (vout_display_t *vd,
return NULL; 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) if (conn == NULL)
goto error; goto error;
*pconn = conn; *pconn = conn;
......
...@@ -220,7 +220,7 @@ static int Open (vlc_object_t *obj) ...@@ -220,7 +220,7 @@ static int Open (vlc_object_t *obj)
} }
/* Connect to X server */ /* Connect to X server */
Display *dpy = XOpenDisplay (sys->embed->x11_display); Display *dpy = XOpenDisplay (sys->embed->display.x11);
if (dpy == NULL) if (dpy == NULL)
{ {
vout_display_DeleteWindow (vd, sys->embed); vout_display_DeleteWindow (vd, sys->embed);
......
...@@ -265,7 +265,7 @@ static int Open (vlc_object_t *obj) ...@@ -265,7 +265,7 @@ static int Open (vlc_object_t *obj)
} }
wnd->handle.xid = window; wnd->handle.xid = window;
wnd->x11_display = display; wnd->display.x11 = display;
wnd->control = Control; wnd->control = Control;
wnd->sys = p_sys; wnd->sys = p_sys;
...@@ -374,7 +374,7 @@ static void Close (vlc_object_t *obj) ...@@ -374,7 +374,7 @@ static void Close (vlc_object_t *obj)
DestroyKeyHandler (p_sys->keys); DestroyKeyHandler (p_sys->keys);
} }
xcb_disconnect (conn); xcb_disconnect (conn);
free (wnd->x11_display); free (wnd->display.x11);
free (p_sys); free (p_sys);
} }
......
...@@ -67,7 +67,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj, ...@@ -67,7 +67,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
case VOUT_WINDOW_TYPE_XID: case VOUT_WINDOW_TYPE_XID:
type = "vout window xid"; type = "vout window xid";
window->handle.xid = 0; window->handle.xid = 0;
window->x11_display = NULL; window->display.x11 = NULL;
break; break;
default: default:
assert(0); assert(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment