summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/videowidget/videoplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multimedia/videowidget/videoplayer.cpp')
-rw-r--r--examples/multimedia/videowidget/videoplayer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/multimedia/videowidget/videoplayer.cpp b/examples/multimedia/videowidget/videoplayer.cpp
index ed24714..cd146e8 100644
--- a/examples/multimedia/videowidget/videoplayer.cpp
+++ b/examples/multimedia/videowidget/videoplayer.cpp
@@ -100,8 +100,7 @@ void VideoPlayer::openFile()
QString fileName = QFileDialog::getOpenFileName(this, tr("Open Movie"));
if (!fileName.isEmpty()) {
- if (surface->isStarted())
- surface->stop();
+ surface->stop();
movie.setFileName(fileName);