Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 13cab9300fd665ff30e4c720ec7b37422c15df32
      
https://github.com/WebKit/WebKit/commit/13cab9300fd665ff30e4c720ec7b37422c15df32
  Author: Loïc Le Page <[email protected]>
  Date:   2026-02-09 (Mon, 09 Feb 2026)

  Changed paths:
    M Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp

  Log Message:
  -----------
  [GStreamer][WPE] WebAudio doesn't resume after window.alert()
https://bugs.webkit.org/show_bug.cgi?id=302391

Reviewed by Philippe Normand.

window.alert() restarts the AudioContext pipeline which leads to reset
the pipeline running time to 0 whereas the application keeps on
timestamping the audio buffers monotonically. This creates a delay that
the clocksync element is waiting before allowing the state change. This
blocks the UI thread during the same delay as it is waiting
synchronously for this state change to finish.

This patch adjusts the appsrc pad offset after the pipeline is restarted
to maintain the continuity of the application timestamping.

* Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
(webKitWebAudioSrcRenderAndPushFrames):
(webKitWebAudioSrcChangeState):

Canonical link: https://commits.webkit.org/307066@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to