diff options
Diffstat (limited to 'Userland/Libraries/LibVideo/PlaybackManager.h')
-rw-r--r-- | Userland/Libraries/LibVideo/PlaybackManager.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Userland/Libraries/LibVideo/PlaybackManager.h b/Userland/Libraries/LibVideo/PlaybackManager.h index abc26d0f03..c31a01b34d 100644 --- a/Userland/Libraries/LibVideo/PlaybackManager.h +++ b/Userland/Libraries/LibVideo/PlaybackManager.h @@ -165,7 +165,7 @@ private: enum EventType : unsigned { DecoderErrorOccurred = (('v' << 2) | ('i' << 1) | 'd') << 4, VideoFramePresent, - PlaybackStatusChange, + PlaybackStateChange, }; class DecoderErrorEvent : public Core::Event { @@ -199,20 +199,13 @@ private: RefPtr<Gfx::Bitmap> m_frame; }; -class PlaybackStatusChangeEvent : public Core::Event { +class PlaybackStateChangeEvent : public Core::Event { public: - PlaybackStatusChangeEvent() = default; - explicit PlaybackStatusChangeEvent(PlaybackStatus status, PlaybackStatus previous_status) - : Core::Event(PlaybackStatusChange) - , m_status(status) - , m_previous_status(previous_status) + explicit PlaybackStateChangeEvent() + : Core::Event(PlaybackStateChange) { } - virtual ~PlaybackStatusChangeEvent() = default; - -private: - PlaybackStatus m_status; - PlaybackStatus m_previous_status; + virtual ~PlaybackStateChangeEvent() = default; }; inline StringView playback_status_to_string(PlaybackStatus status) |