[vlc-devel] commit: Wait for VideoWiget to complete releaseVideoSlot event. ( Laurent Aimar )

git version control git at videolan.org
Tue Jan 6 21:37:52 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan  6 20:01:48 2009 +0100| [75562051ca00b329e27c39577739b6ba7f82704c] | committer: Laurent Aimar 

Wait for VideoWiget to complete releaseVideoSlot event.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=75562051ca00b329e27c39577739b6ba7f82704c
---

 modules/gui/qt4/main_interface.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index dc55bc5..9aeb1f4 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -195,8 +195,9 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
 
 
     /* VideoWidget connects to avoid different threads speaking to each other */
-    CONNECT( this, askReleaseVideo( void ),
-             this, releaseVideoSlot( void ) );
+    connect( this, SIGNAL(askReleaseVideo( void )),
+             this, SLOT(releaseVideoSlot( void )), Qt::BlockingQueuedConnection );
+
     if( videoWidget )
         CONNECT( this, askVideoToResize( unsigned int, unsigned int ),
                  videoWidget, SetSizing( unsigned int, unsigned int ) );




More information about the vlc-devel mailing list