Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a6ebe63cc21847417bc69fb74fcf328360e915b1
https://github.com/WebKit/WebKit/commit/a6ebe63cc21847417bc69fb74fcf328360e915b1
Author: Jean-Yves Avenard <[email protected]>
Date: 2025-10-22 (Wed, 22 Oct 2025)
Changed paths:
M
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferParserAVFObjC.mm
M
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm
M Source/WebCore/platform/graphics/cocoa/SourceBufferParser.h
M Source/WebCore/platform/graphics/cocoa/SourceBufferParserWebM.cpp
Log Message:
-----------
[MSE] All SourceBufferPrivateParser calls should be made on provided callback
https://bugs.webkit.org/show_bug.cgi?id=301245
rdar://163164795
Reviewed by Eric Carlson.
Historically, it was necessary to wait for the LegacyCDMSession to process
the init segment on the main thread before the SourceBufferParser could
return. This was achieved by calling some callbacks on the parser queue
while others on the main thread.
This is no longer necessary and all thread synchronisations were removed
in 301380@main.
We now ensure that all callbacks are called through callOnClientThreadCallback.
This is also required to support having SourceBufferPrivate runs in a worker
thread.
Covered by existing tests.
*
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferParserAVFObjC.mm:
(WebCore::SourceBufferParserAVFObjC::willProvideContentKeyRequestInitializationDataForTrackID):
(WebCore::SourceBufferParserAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID):
(WebCore::SourceBufferParserAVFObjC::didProvideContentKeyRequestSpecifierForTrackID):
*
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
(WebCore::SourceBufferPrivateAVFObjC::appendInternal):
* Source/WebCore/platform/graphics/cocoa/SourceBufferParser.h:
* Source/WebCore/platform/graphics/cocoa/SourceBufferParserWebM.cpp:
(WebCore::SourceBufferParserWebM::contentKeyRequestInitializationDataForTrackID):
Canonical link: https://commits.webkit.org/301981@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications