summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVal Doroshchuk <valentyn.doroshchuk@qt.io>2019-04-08 15:22:39 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-04-10 07:06:36 +0000
commit4fb893c9375a8e721f8de01230e6d5d64dc92375 (patch)
tree8c2ac2b9571da235c75288b64db10234d7521986 /src/plugins
parentc785e8fcfd0202a88a5e28f8a1410a83f95a9c9f (diff)
EVR: Don't repaint with black until the surface is active
A frame must be presented until pause/play is called. Fixes tst_QMediaPlayerBackend::seekPauseSeek Task-number: QTBUG-65574 Change-Id: I6946c5a5977c44fed80abce364a4222845898016 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/common/evr/evrcustompresenter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/common/evr/evrcustompresenter.cpp b/src/plugins/common/evr/evrcustompresenter.cpp
index 872b97bcc..470f670e4 100644
--- a/src/plugins/common/evr/evrcustompresenter.cpp
+++ b/src/plugins/common/evr/evrcustompresenter.cpp
@@ -1143,7 +1143,7 @@ HRESULT EVRCustomPresenter::flush()
sample->Release();
m_frameStep.samples.clear();
- if (m_renderState == RenderStopped) {
+ if (m_renderState == RenderStopped && m_surface->isActive()) {
// Repaint with black.
presentSample(NULL);
}