*****************************************************************************/
#include <errno.h> /* ENOMEM */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
#include <vlc_interface.h>
add_shortcut( "wxwin" );
add_shortcut( "wx" );
add_shortcut( "wxwidgets" );
- set_program( "wxvlc" );
add_bool( "wx-embed", 1, NULL,
EMBED_TEXT, EMBED_LONGTEXT, VLC_FALSE );
{
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 defined HAVE_GETENV && (defined __WXGTK__ || defined __WXX11)
if( !getenv( "DISPLAY" ) )
{
msg_Err( p_intf, "no X server");
FIND_ANYWHERE );
if( p_playlist )
{
- playlist_Control( p_playlist, PLAYLIST_AUTOPLAY, VLC_FALSE );
+ playlist_Control( p_playlist, PLAYLIST_PLAY, VLC_FALSE );
vlc_object_release( p_playlist );
}
}
if( p_intf->pf_show_dialog )
{
/* We need to manually clean up the dialogs class */
- if( p_intf->p_sys->p_wxwindow ) delete p_intf->p_sys->p_wxwindow;
+ delete p_intf->p_sys->p_wxwindow;
}
#if (wxCHECK_VERSION(2,5,0))
}
}
- if( psz_org ) free( psz_org );
+ free( psz_org );
return;
invalid:
position[i] = wxDefaultPosition;
size[i] = wxDefaultSize;
}
- if( psz_org ) free( psz_org );
+ free( psz_org );
}