/* 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)
*
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 );
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;
}
/* 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);
}
wnd->handle.xid = window;
- wnd->x11_display = display;
+ wnd->display.x11 = display;
wnd->control = Control;
wnd->sys = p_sys;
DestroyKeyHandler (p_sys->keys);
}
xcb_disconnect (conn);
- free (wnd->x11_display);
+ free (wnd->display.x11);
free (p_sys);
}
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);