From 003b2755cc307676cb7f84a4a5ef7e23dfd75ce1 Mon Sep 17 00:00:00 2001 From: Andrew den Exter Date: Mon, 29 Mar 2010 15:59:42 +1000 Subject: Force a repaint on changes in the native size of video frames. This ensures old frame data is cleared when swithing to progressively smaller frame sizes. Reviewed-by: Derick Hawcroft --- src/multimedia/base/qvideowidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/multimedia/base/qvideowidget.cpp b/src/multimedia/base/qvideowidget.cpp index 467d7c6..486efc0 100644 --- a/src/multimedia/base/qvideowidget.cpp +++ b/src/multimedia/base/qvideowidget.cpp @@ -259,6 +259,7 @@ void QRendererVideoWidgetBackend::formatChanged(const QVideoSurfaceFormat &forma updateRects(); m_widget->updateGeometry(); + m_widget->update(); } void QRendererVideoWidgetBackend::frameChanged() @@ -521,6 +522,7 @@ void QVideoWidgetPrivate::_q_fullScreenChanged(bool fullScreen) void QVideoWidgetPrivate::_q_dimensionsChanged() { q_func()->updateGeometry(); + q_func()->update(); } /*! -- cgit v0.12