LibMedia+LibWeb: Remove an unnecessary parameter from on_track_added

The TrackType parameter is redundant, since the actual Track object
already contains it.
This commit is contained in:
Zaggy1024
2026-03-25 14:31:32 -05:00
committed by Gregory Bertilson
parent d6f821f22d
commit 9664c11c15
Notes: github-actions[bot] 2026-04-01 07:58:44 +00:00
3 changed files with 5 additions and 5 deletions

View File

@@ -1536,8 +1536,8 @@ void HTMLMediaElement::set_up_playback_manager()
// -> If the media resource is found to have an audio track
// -> If the media resource is found to have a video track
m_playback_manager->on_track_added = GC::weak_callback(*this, [](auto& self, auto track_type, auto& track) {
if (track_type == Media::TrackType::Audio)
m_playback_manager->on_track_added = GC::weak_callback(*this, [](auto& self, auto& track) {
if (track.type() == Media::TrackType::Audio)
self.on_audio_track_added(track);
else
self.on_video_track_added(track);