[vlc-devel] commit: Qt4: Avoid a warning when embedding is disabled ( Rémi Denis-Courmont )
git version control
git at videolan.org
Fri Jun 20 23:56:19 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jun 21 00:58:19 2008 +0300| [ea20728712835aa7ccdfec4076363cd3a02468d9]
Qt4: Avoid a warning when embedding is disabled
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea20728712835aa7ccdfec4076363cd3a02468d9
---
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 c3a33c2..6a5fec6 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -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() );
More information about the vlc-devel
mailing list