diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2023-02-07 15:53:34 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-08 21:52:42 +0100 |
commit | a4c76728025e510d4be55bc8542e9b577de371fe (patch) | |
tree | 77be70f07cf85d2779fdb07d618b48e1ab95134c /Userland/Libraries/LibVideo/PlaybackManager.cpp | |
parent | 2ff11bac3d4042c72a645e75e5c762e346fd8343 (diff) | |
download | serenity-a4c76728025e510d4be55bc8542e9b577de371fe.zip |
LibVideo: Rename Status -> State in `PlaybackStatusChangeEvent` class
A bit of a bikeshed, but status sounds more like a result of an action,
and state sounds more accurate to what the `PlaybackManager` does.
The previous and current state fields of the `PlaybackStateChangeEvent`
are now removed, since they were unused (for now).
This is a lead-up to the refactoring of VideoPlaybackManager to make
that diff more legible.
Diffstat (limited to 'Userland/Libraries/LibVideo/PlaybackManager.cpp')
-rw-r--r-- | Userland/Libraries/LibVideo/PlaybackManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibVideo/PlaybackManager.cpp b/Userland/Libraries/LibVideo/PlaybackManager.cpp index 672bf4dbed..c60f83f582 100644 --- a/Userland/Libraries/LibVideo/PlaybackManager.cpp +++ b/Userland/Libraries/LibVideo/PlaybackManager.cpp @@ -57,7 +57,7 @@ void PlaybackManager::set_playback_status(PlaybackStatus status) m_present_timer->stop(); } - m_main_loop.post_event(m_event_handler, make<PlaybackStatusChangeEvent>(status, old_status)); + m_main_loop.post_event(m_event_handler, make<PlaybackStateChangeEvent>()); } } |