Skip to content

Commit 966bf83

Browse files
committed
Fixed pause button by making VideoImpl::setPlayState virtual
1 parent 7a47ada commit 966bf83

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/VideoImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class VideoImpl
8181
/// Loads a new media source. Subclasses override to set up their player.
8282
virtual bool loadMovie(const QString& filename);
8383

84-
bool setPlayState(bool play);
84+
virtual bool setPlayState(bool play);
8585
bool getPlayState() const { return _playState; }
8686

8787
bool seekIsEnabled() const { return _seekEnabled; }

src/core/VideoPlayerImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class VideoPlayerImpl : public QObject, public VideoImpl
4040
bool loadMovie(const QString& path) override;
4141
bool isLive() override { return false; }
4242

43-
bool setPlayState(bool play);
43+
bool setPlayState(bool play) override;
4444
bool seekTo(qint64 positionMs) override;
4545
void setRate(double rate) override;
4646
void setVolume(double volume) override;

0 commit comments

Comments
 (0)