diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2010-02-08 07:53:56 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2010-02-08 07:53:56 (GMT) |
commit | 4603dc768d8c98770311a9136f956f3cefa90362 (patch) | |
tree | 239f1d6eccbd98d1ada03725897ef242929447a3 /tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp | |
parent | da727b5aadf64128de0eb39fc1ce26e587211272 (diff) | |
download | Qt-4603dc768d8c98770311a9136f956f3cefa90362.zip Qt-4603dc768d8c98770311a9136f956f3cefa90362.tar.gz Qt-4603dc768d8c98770311a9136f956f3cefa90362.tar.bz2 |
Don't clear the video output when the video widget is hidden.
Changing the video output is a heavy task and is likely to interrupt
playback. Not really worth the cost for knowing the video isn't being
decoded while it cant be seen.
This also applies to the QGraphicsVideoItem.
Diffstat (limited to 'tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp')
-rw-r--r-- | tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp b/tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp index 2427d64..7fb6005 100644 --- a/tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp +++ b/tests/auto/qgraphicsvideoitem/tst_qgraphicsvideoitem.cpp @@ -357,7 +357,7 @@ void tst_QGraphicsVideoItem::show() QVERIFY(object.testService->rendererControl->surface() != 0); item->hide(); - QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::NoOutput); + QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::RendererOutput); item->show(); QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::RendererOutput); |