From 918ed5c920de3a5ea0ceb5c477a0822fb14ab9db Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 8 Apr 2023 21:41:00 -0400 Subject: [PATCH] LibVideo: Add a getter for the PlaybackManager's selected track --- Userland/Libraries/LibVideo/PlaybackManager.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibVideo/PlaybackManager.h b/Userland/Libraries/LibVideo/PlaybackManager.h index 29fae14f2b0..92c03d51312 100644 --- a/Userland/Libraries/LibVideo/PlaybackManager.h +++ b/Userland/Libraries/LibVideo/PlaybackManager.h @@ -125,6 +125,8 @@ public: Function on_decoder_error; Function on_fatal_playback_error; + Track const& selected_video_track() const { return m_selected_video_track; } + private: class PlaybackStateHandler; // Abstract class to allow resuming play/pause after the state is completed.