]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.cpp
Add video filters panel
[vlc] / modules / gui / qt4 / qt4.cpp
index 0da277fb404ae1d44135071b2f2bb5b3bf2aa7da..18dc637656025eabf590be5358c227b065c05c50 100644 (file)
@@ -74,6 +74,8 @@ static int Open( vlc_object_t *p_this )
     p_intf->p_sys->p_playlist = pl_Yield( p_intf );
     p_intf->p_sys->p_sub = msg_Subscribe( p_intf, MSG_QUEUE_NORMAL );
 
+    p_intf->b_play = VLC_TRUE;
+
     return VLC_SUCCESS;
 }
 
@@ -136,6 +138,12 @@ static void Init( intf_thread_t *p_intf )
     if( p_intf->pf_show_dialog )
         vlc_thread_ready( p_intf );
 
+    /* Start playing if needed */
+    if( !p_intf->pf_show_dialog && p_intf->b_play )
+    {
+        playlist_Control( THEPL, PLAYLIST_AUTOPLAY, VLC_FALSE );
+    }
+
     app->setQuitOnLastWindowClosed( false );
     app->exec();
     MainInputManager::killInstance();