}
Dialogs::instance( p_intf );
+ /* We support play on start */
+ p_intf->b_play = VLC_TRUE;
+
return( VLC_SUCCESS );
}
// Get the instance of OSLoop
OSLoop *loop = OSFactory::instance( p_intf )->getOSLoop();
+ // Check if we need to start playing
+ if( p_intf->b_play )
+ {
+ playlist_t *p_playlist =
+ (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
+ FIND_ANYWHERE );
+ if( p_playlist )
+ {
+ playlist_Play( p_playlist );
+ vlc_object_release( p_playlist );
+ }
+ }
+
// Enter the main event loop
loop->run();
#define SKINS2_CONFIG N_("Config of last used skin")
#define SKINS2_CONFIG_LONG N_("Config of last used skin.")
#define SKINS2_TRANSPARENCY N_("Enable transparency effects")
-#define SKINS2_TRANSPARENCY_LONG N_("You can disable all transparency effects" \
+#define SKINS2_TRANSPARENCY_LONG N_("You can disable all transparency effects"\
" if you want. This is mainly useful when moving windows does not behave" \
" correctly.")
vlc_thread_ready( p_intf );
/* Check if we need to start playing */
- if( p_intf->b_play )
+ if( !p_intf->pf_show_dialog && p_intf->b_play )
{
playlist_t *p_playlist =
(playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
p_intf->pf_request_window = NULL;
p_intf->pf_release_window = NULL;
p_intf->pf_control_window = NULL;
+ p_intf->b_play = VLC_FALSE;
/* Choose the best module */
p_intf->p_module = module_Need( p_intf, "interface", psz_module, 0 );
VLC_AddTarget( p_vlc->i_object_id, ppsz_argv[ i_opt ],
(char const **)( i_options ? &ppsz_argv[i_opt + 1] :
NULL ), i_options,
- PLAYLIST_INSERT | (i_opt == optind ? PLAYLIST_GO : 0),
- 0 );
+ PLAYLIST_INSERT, 0 );
}
return VLC_SUCCESS;