Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ae3c47e90d09b1bd0960922cbe39f08ccefceb72
      
https://github.com/WebKit/WebKit/commit/ae3c47e90d09b1bd0960922cbe39f08ccefceb72
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M 
Source/WebCore/platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm
    M 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h
    M 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm

  Log Message:
  -----------
  [MSE] Make SourceBufferPrivateAVFObjC::needsVideoLayer() thread-safe
https://bugs.webkit.org/show_bug.cgi?id=302619
rdar://164858697

Reviewed by Jer Noble and Eric Carlson.

SourceBufferPrivateAVFObjC::needsVideoLayer() is called on the main thread.
In preparation for webkit.org/b/302054 where we will move the 
SourceBufferPrivate
to its own workqueue, we make this method thread-safe.

No change in observable behaviour.
* 
Source/WebCore/platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm:
(WebCore::MediaSourcePrivateAVFObjC::needsVideoLayer const):
* 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h:
* 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
(WebCore::SourceBufferPrivateAVFObjC::updateTrackIds):
(WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID):
(WebCore::SourceBufferPrivateAVFObjC::needsVideoLayer const):
(WebCore::SourceBufferPrivateAVFObjC::maybeUpdateNeedsVideoLayer):
(WebCore::SourceBufferPrivateAVFObjC::trackDidChangeSelected):

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



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

Reply via email to