Commit 0c753806 authored by Erwan Tulou's avatar Erwan Tulou

skins2(windows): correct playback not started automatically (trac #2539)

Since skins2(Windows) is run in the main thread, the default mechanism couldn't work.
(cherry picked from commit 6c5bf42f)
parent e48e3696
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include "../commands/cmd_quit.hpp" #include "../commands/cmd_quit.hpp"
#include "../commands/cmd_dialogs.hpp" #include "../commands/cmd_dialogs.hpp"
#include "../commands/cmd_minimize.hpp" #include "../commands/cmd_minimize.hpp"
#include "../commands/cmd_playlist.hpp"
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Exported interface functions. // Exported interface functions.
...@@ -233,7 +234,14 @@ static int Open( vlc_object_t *p_this ) ...@@ -233,7 +234,14 @@ static int Open( vlc_object_t *p_this )
free( skin_last ); free( skin_last );
#ifdef WIN32 #ifdef WIN32
p_intf->b_should_run_on_first_thread = true; p_intf->b_should_run_on_first_thread = true;
// enqueue a command to automatically start the first playlist item
AsyncQueue *pQueue = AsyncQueue::instance( p_intf );
CmdPlaylistFirst *pCmd = new CmdPlaylistFirst( p_intf );
pQueue->push( CmdGenericPtr( pCmd ) );
#endif #endif
return( VLC_SUCCESS ); return( VLC_SUCCESS );
......
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