From 6919ade54ef02903e9643b4076ea048daef8cc9f Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Fri, 25 Jun 2021 12:04:57 -0300 Subject: [PATCH] Fix build error on VideoWindow when building with Qt5 video This bug was introduced by #3764 Fixes #3907 --- src/Train/VideoWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Train/VideoWindow.cpp b/src/Train/VideoWindow.cpp index 9ed5187c0..101f1b318 100644 --- a/src/Train/VideoWindow.cpp +++ b/src/Train/VideoWindow.cpp @@ -222,7 +222,7 @@ bool VideoWindow::hasActiveVideo() const } #endif #ifdef GC_VIDEO_QT5 - if (LoadedMedia == mp->mediaStatus()) + if (mp->state() != QMediaPlayer::StoppedState) return true; #endif