[vlc-devel] commit: skins2(windows): correct playback not started automatically ( trac #2539) (Erwan Tulou )
git version control
git at videolan.org
Sun Jun 28 21:59:23 CEST 2009
vlc | branch: 1.0-bugfix | Erwan Tulou <erwan10 at videolan.org> | Sun Jun 28 00:46:22 2009 +0200| [0c7538066e6a1f2986a7c50068201d8441932bfa] | committer: 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 6c5bf42f51a84b2aafcecb370a177c4a009c0128)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0c7538066e6a1f2986a7c50068201d8441932bfa
---
modules/gui/skins2/src/skin_main.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/gui/skins2/src/skin_main.cpp b/modules/gui/skins2/src/skin_main.cpp
index 4df4c4a..7469734 100644
--- a/modules/gui/skins2/src/skin_main.cpp
+++ b/modules/gui/skins2/src/skin_main.cpp
@@ -49,6 +49,7 @@
#include "../commands/cmd_quit.hpp"
#include "../commands/cmd_dialogs.hpp"
#include "../commands/cmd_minimize.hpp"
+#include "../commands/cmd_playlist.hpp"
//---------------------------------------------------------------------------
// Exported interface functions.
@@ -233,7 +234,14 @@ static int Open( vlc_object_t *p_this )
free( skin_last );
#ifdef WIN32
+
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
return( VLC_SUCCESS );
More information about the vlc-devel
mailing list