summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gsttools/qgstreamervideowidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gsttools/qgstreamervideowidget.cpp b/src/gsttools/qgstreamervideowidget.cpp
index 164e62f8..4137aff3 100644
--- a/src/gsttools/qgstreamervideowidget.cpp
+++ b/src/gsttools/qgstreamervideowidget.cpp
@@ -38,6 +38,7 @@
****************************************************************************/
#include "qgstreamervideowidget_p.h"
+#include "qgstutils_p.h"
#include <QtCore/qcoreevent.h>
#include <QtCore/qdebug.h>
@@ -170,7 +171,8 @@ bool QGstreamerVideoWidgetControl::eventFilter(QObject *object, QEvent *e)
if (e->type() == QEvent::Paint) {
// Update overlay by new size if any.
- m_videoOverlay.setRenderRectangle(QRect(0, 0, m_widget->width(), m_widget->height()));
+ if (QGstUtils::useOpenGL())
+ m_videoOverlay.setRenderRectangle(QRect(0, 0, m_widget->width(), m_widget->height()));
if (m_videoOverlay.isActive())
m_videoOverlay.expose(); // triggers a repaint of the last frame
else