From 966bf83e9fccd1cf649165295dce5f792235f870 Mon Sep 17 00:00:00 2001 From: Sofian Audry Date: Sun, 26 Jul 2026 19:19:41 -0400 Subject: [PATCH] Fixed pause button by making VideoImpl::setPlayState virtual --- src/core/VideoImpl.h | 2 +- src/core/VideoPlayerImpl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/VideoImpl.h b/src/core/VideoImpl.h index 410a6970..6079e2bb 100644 --- a/src/core/VideoImpl.h +++ b/src/core/VideoImpl.h @@ -81,7 +81,7 @@ class VideoImpl /// Loads a new media source. Subclasses override to set up their player. virtual bool loadMovie(const QString& filename); - bool setPlayState(bool play); + virtual bool setPlayState(bool play); bool getPlayState() const { return _playState; } bool seekIsEnabled() const { return _seekEnabled; } diff --git a/src/core/VideoPlayerImpl.h b/src/core/VideoPlayerImpl.h index 78b30305..285c671a 100644 --- a/src/core/VideoPlayerImpl.h +++ b/src/core/VideoPlayerImpl.h @@ -40,7 +40,7 @@ class VideoPlayerImpl : public QObject, public VideoImpl bool loadMovie(const QString& path) override; bool isLive() override { return false; } - bool setPlayState(bool play); + bool setPlayState(bool play) override; bool seekTo(qint64 positionMs) override; void setRate(double rate) override; void setVolume(double volume) override;