[vlc-devel] commit: Qt4: add XFlush - this does still not work right ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Jun 21 10:36:05 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jun 21 11:38:04 2008 +0300| [fee5351a006a79125e73086b96a045fc644d1b7a]
Qt4: add XFlush - this does still not work right
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fee5351a006a79125e73086b96a045fc644d1b7a
---
modules/gui/qt4/components/interface_widgets.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index f6bb133..d8de952 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -48,6 +48,10 @@
#include <QResizeEvent>
#include <QDate>
#include <QMutexLocker>
+#ifdef Q_WS_X11
+# include <X11/Xlib.h>
+# include <qx11info_x11.h>
+#endif
/**********************************************************************
* Video Widget. A simple frame on which video is drawn
@@ -85,6 +89,10 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
void VideoWidget::paintEvent(QPaintEvent *ev)
{
QFrame::paintEvent(ev);
+#ifdef Q_WS_X11
+ XFlush( QX11Info::display() );
+#endif
+ QMutexLocker locker( &handleLock );
handleReady = true;
handleWait.wakeAll();
}
More information about the vlc-devel
mailing list