]> git.sesse.net Git - vlc/commitdiff
Qt4: Avoid a warning when embedding is disabled
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Fri, 20 Jun 2008 21:58:19 +0000 (00:58 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Fri, 20 Jun 2008 21:58:19 +0000 (00:58 +0300)
modules/gui/qt4/main_interface.cpp

index c3a33c250de77bdd7150c51bc1708c37d0ebd3e4..6a5fec61ccd3f6812bce5c15c0c6cc395ed297c2 100644 (file)
@@ -218,8 +218,9 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     /* VideoWidget connect mess to avoid different threads speaking to each other */
     CONNECT( this, askReleaseVideo( void * ),
              this, releaseVideoSlot( void * ) );
-    CONNECT( this, askVideoToResize( unsigned int, unsigned int ),
-             videoWidget, SetSizing( unsigned int, unsigned int ) );
+    if( videoWidget )
+        CONNECT( this, askVideoToResize( unsigned int, unsigned int ),
+                 videoWidget, SetSizing( unsigned int, unsigned int ) );
 
     CONNECT( this, askUpdate(), this, doComponentsUpdate() );