summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2010-03-29 05:59:42 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2010-03-30 00:48:23 (GMT)
commit003b2755cc307676cb7f84a4a5ef7e23dfd75ce1 (patch)
tree4d68ada732e70a016a40ae83cb2dd146f9e9fb53 /src
parent3546fcbd83b2a255894e6ad9aa673f6feaba6fe7 (diff)
downloadQt-003b2755cc307676cb7f84a4a5ef7e23dfd75ce1.zip
Qt-003b2755cc307676cb7f84a4a5ef7e23dfd75ce1.tar.gz
Qt-003b2755cc307676cb7f84a4a5ef7e23dfd75ce1.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/multimedia/base/qvideowidget.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}
/*!