X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fwxwidgets%2Fwxwidgets.cpp;h=c6752bcbbfae8ff5ec6c9f51eed9fd9ac2091d0f;hb=b57e45928314b2d2c146be3dbdb1eeabd504dbbd;hp=0e7453da18f6ec90bfa62d9ed7b43bc01a670997;hpb=e40d134c69b144327fd1d2001e8b85640f5c7cb9;p=vlc diff --git a/modules/gui/wxwidgets/wxwidgets.cpp b/modules/gui/wxwidgets/wxwidgets.cpp index 0e7453da18..c6752bcbbf 100644 --- a/modules/gui/wxwidgets/wxwidgets.cpp +++ b/modules/gui/wxwidgets/wxwidgets.cpp @@ -25,7 +25,10 @@ * Preamble *****************************************************************************/ #include /* ENOMEM */ -#include + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include #include @@ -124,7 +127,6 @@ vlc_module_begin(); add_shortcut( "wxwin" ); add_shortcut( "wx" ); add_shortcut( "wxwidgets" ); - set_program( "wxvlc" ); add_bool( "wx-embed", 1, NULL, EMBED_TEXT, EMBED_LONGTEXT, VLC_FALSE ); @@ -178,7 +180,7 @@ 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 defined HAVE_GETENV && (defined __WXGTK__ || defined __WXX11) if( !getenv( "DISPLAY" ) ) { msg_Err( p_intf, "no X server"); @@ -399,7 +401,7 @@ bool Instance::OnInit() 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 ); } } @@ -416,7 +418,7 @@ int Instance::OnExit() 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)) @@ -558,7 +560,7 @@ WindowSettings::WindowSettings( intf_thread_t *_p_intf ) } } - if( psz_org ) free( psz_org ); + free( psz_org ); return; invalid: @@ -570,7 +572,7 @@ invalid: position[i] = wxDefaultPosition; size[i] = wxDefaultSize; } - if( psz_org ) free( psz_org ); + free( psz_org ); }