From daf3d4c6ef195bb16d528bfb3bdcd94d29cf41eb Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Sat, 2 Sep 2023 17:53:31 -0500 Subject: [PATCH] LibWeb: Don't send audio time updates until audio is playing We would start the timer to send playback time updates to the element before playback had started, so in cases where the `HTMLMediaElement` (incorrectly) creates both an `AudioTrack` and `VideoTrack`, it will not cause the seek bar to flicker between the current video position and zero. --- Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp b/Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp index c396c25ac2..1ba5459453 100644 --- a/Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp +++ b/Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp @@ -78,7 +78,6 @@ AudioCodecPluginAgnostic::AudioCodecPluginAgnostic(NonnullRefPtr m_update_timer->on_timeout = [this]() { update_timestamp(); }; - m_update_timer->start(); } void AudioCodecPluginAgnostic::resume_playback()