Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 71e4dc95a917c20d0bcad4a111f36b8ea340c272
      
https://github.com/WebKit/WebKit/commit/71e4dc95a917c20d0bcad4a111f36b8ea340c272
  Author: Jer Noble <[email protected]>
  Date:   2026-01-06 (Tue, 06 Jan 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm

  Log Message:
  -----------
  CRASH in AudioVideoRendererAVFObjC::requestMediaDataWhenReady()
rdar://165519880
https://bugs.webkit.org/show_bug.cgi?id=304990

Reviewed by Eric Carlson.

303486@main exposed a pre-existing issue, where a client of 
VideoMediaSampleRenderer
which called stopRequestingMediaData() from callback would have its lambda 
destroyed
while that lambda was still executing. To protect against this kind of 
re-entrancy,
clear the m_readyForMoreMediaDataFunction ivar from stopRequestingMediaData(), 
but
only destroy the function itself during the next run-loop.

* Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm:
(WebCore::VideoMediaSampleRenderer::stopRequestingMediaData):

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



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

Reply via email to