]> git.sesse.net Git - vlc/commitdiff
We actually need to deliver the signal synchronously here
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 24 Jun 2008 20:25:02 +0000 (23:25 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 24 Jun 2008 20:28:09 +0000 (23:28 +0300)
Otherwise I sometimes get:
[????????] x11 video output error: X11 request 2.0 failed with error
code 3:
 BadWindow (invalid Window parameter)
 X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  2 (X_ChangeWindowAttributes)
 Resource id in failed request:  0x1000027
 Serial number of failed request:  26
 Current serial number in output stream:  27

modules/gui/qt4/components/interface_widgets.cpp

index 5727e331d934515c13f42c4c9702f2cb474c0f0f..6402535db8ad09ea44f49f2e51f7b9ba71aa0fc3 100644 (file)
@@ -74,7 +74,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
     setAttribute( Qt::WA_PaintOnScreen, true );
 
     /* The core can ask through a callback to show the video. */
-    CONNECT( this, askVideoWidgetToShow(), this, show() );
+    connect( this, SIGNAL(askVideoWidgetToShow()), this, SLOT(show()), Qt::BlockingQueuedConnection );
 
     /* The core can ask through a callback to resize the video */
    // CONNECT( this, askResize( int, int ), this, SetSizing( int, int ) );