summaryrefslogtreecommitdiffstats
path: root/tests/auto/qvideowidget/tst_qvideowidget.cpp
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2010-02-08 07:53:56 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2010-02-08 07:53:56 (GMT)
commit4603dc768d8c98770311a9136f956f3cefa90362 (patch)
tree239f1d6eccbd98d1ada03725897ef242929447a3 /tests/auto/qvideowidget/tst_qvideowidget.cpp
parentda727b5aadf64128de0eb39fc1ce26e587211272 (diff)
downloadQt-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/qvideowidget/tst_qvideowidget.cpp')
-rw-r--r--tests/auto/qvideowidget/tst_qvideowidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qvideowidget/tst_qvideowidget.cpp b/tests/auto/qvideowidget/tst_qvideowidget.cpp
index 37676cf..e30d16b 100644
--- a/tests/auto/qvideowidget/tst_qvideowidget.cpp
+++ b/tests/auto/qvideowidget/tst_qvideowidget.cpp
@@ -653,7 +653,7 @@ void tst_QVideoWidget::showWindowControl()
widget.hide();
- QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::NoOutput);
+ QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::WindowOutput);
}
void tst_QVideoWidget::showWidgetControl()
@@ -677,7 +677,7 @@ void tst_QVideoWidget::showWidgetControl()
widget.hide();
- QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::NoOutput);
+ QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::WidgetOutput);
QCOMPARE(object.testService->widgetControl->videoWidget()->isVisible(), false);
}
@@ -702,7 +702,7 @@ void tst_QVideoWidget::showRendererControl()
widget.hide();
- QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::NoOutput);
+ QCOMPARE(object.testService->outputControl->output(), QVideoOutputControl::RendererOutput);
}
void tst_QVideoWidget::aspectRatioWindowControl()