Commit 6ea62a70 authored by Christophe Mutricy's avatar Christophe Mutricy

wx: Check in Open() if we have an X

parent 86ce960c
......@@ -183,7 +183,14 @@ vlc_module_end();
static int Open( vlc_object_t *p_this )
{
intf_thread_t *p_intf = (intf_thread_t *)p_this;
/* Test in we have an X*/
#if defined HAVE_GETENV && (defined __WXGTK__ || defined __WXX11)
if( !getenv( "DISPLAY" ) )
{
msg_Err( p_intf, "no X server");
return VLC_EGENERIC;
}
#endif
/* Allocate instance and initialize some members */
p_intf->p_sys = (intf_sys_t *)malloc( sizeof( intf_sys_t ) );
if( p_intf->p_sys == NULL )
......
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