Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: eaae8bc71479bc17a16cfbaf672fb84228477748
      
https://github.com/WebKit/WebKit/commit/eaae8bc71479bc17a16cfbaf672fb84228477748
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2025-10-12 (Sun, 12 Oct 2025)

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

  Log Message:
  -----------
  [MSE] Remove m_hasSessionSemaphore ; it's now unused
https://bugs.webkit.org/show_bug.cgi?id=300548
rdar://162420502

Reviewed by Simon Fraser.

Since we enabled MODERN_AVCONTENTKEYSESSION, we no longer need to attach
the AVStreamDataParser to the LegacyCDMSession.
When attaching the AVStreamDataParser to the LegacyCDMSession we had to
ensure that when reading the init data and attaching it to the setCDMSession
we blocked until the operation was completed on the main thread.

This is no longer required, we can remove both SourceBufferPrivateAVFObjC 
m_hasSessionSemaphore and
m_abortSemaphore. We can remove all locking and wait that were still
occurring unnecessarily.

No JS observable change; covered by existing tests.
* 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h:
* 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
(WebCore::SourceBufferPrivateAVFObjC::SourceBufferPrivateAVFObjC):
(WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID):
(WebCore::SourceBufferPrivateAVFObjC::appendInternal):
(WebCore::SourceBufferPrivateAVFObjC::appendCompleted):
(WebCore::SourceBufferPrivateAVFObjC::setCDMSession):
(WebCore::SourceBufferPrivateAVFObjC::attemptToDecrypt):
(WebCore::m_streamDataParser): Deleted.
(WebCore::SourceBufferPrivateAVFObjC::abort): Deleted. We no longer required a 
specialisation of this method.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to