- /* The core can ask through a callback to show the video.
- * NOTE: We need to block the video output core until the window handle
- * is ready for use (otherwise an X11 invalid handle failure may occur).
- * As a side effect, it is illegal to emit askVideoWidgetToShow from
- * the same thread as the Qt4 thread that owns this. */
- QObject::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 ) );
+ /* The core can ask through a callback to show the video. */
+#if HAS_QT43
+ connect( this, SIGNAL(askVideoWidgetToShow( unsigned int, unsigned int)),
+ this, SLOT(SetSizing(unsigned int, unsigned int )),
+ Qt::BlockingQueuedConnection );
+#else
+#error This is broken. Fix it with a QEventLoop with a processEvents ()
+ connect( this, SIGNAL(askVideoWidgetToShow( unsigned int, unsigned int)),
+ this, SLOT(SetSizing(unsigned int, unsigned int )) );
+#endif