summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibVideo/PlaybackManager.cpp
diff options
context:
space:
mode:
authorZaggy1024 <zaggy1024@gmail.com>2023-02-07 15:53:34 -0600
committerAndreas Kling <kling@serenityos.org>2023-02-08 21:52:42 +0100
commita4c76728025e510d4be55bc8542e9b577de371fe (patch)
tree77be70f07cf85d2779fdb07d618b48e1ab95134c /Userland/Libraries/LibVideo/PlaybackManager.cpp
parent2ff11bac3d4042c72a645e75e5c762e346fd8343 (diff)
downloadserenity-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.cpp2
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>());
}
}