Title: [290315] branches/safari-614.1.5-branch/Source/WebCore
Revision
290315
Author
[email protected]
Date
2022-02-22 09:53:03 -0800 (Tue, 22 Feb 2022)

Log Message

Cherry-pick r290311. rdar://problem/89261425

    [Cocoa] Partial rollout of r289946, broke Netflix
    https://bugs.webkit.org/show_bug.cgi?id=237019
    <rdar://89261425>

    Reviewed by Eric Carlson.

    Adopting AVContentKeySupport for AVSampleBufferDisplayLayer broke Netflix playback on Cocoa
    ports. Disable that support by hard coding sampleBufferRenderersSupportKeySession() to
    return false.

    * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
    (WebCore::sampleBufferRenderersSupportKeySession):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290311 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-614.1.5-branch/Source/WebCore/ChangeLog (290314 => 290315)


--- branches/safari-614.1.5-branch/Source/WebCore/ChangeLog	2022-02-22 17:50:53 UTC (rev 290314)
+++ branches/safari-614.1.5-branch/Source/WebCore/ChangeLog	2022-02-22 17:53:03 UTC (rev 290315)
@@ -1,3 +1,38 @@
+2022-02-22  Alan Coon  <[email protected]>
+
+        Cherry-pick r290311. rdar://problem/89261425
+
+    [Cocoa] Partial rollout of r289946, broke Netflix
+    https://bugs.webkit.org/show_bug.cgi?id=237019
+    <rdar://89261425>
+    
+    Reviewed by Eric Carlson.
+    
+    Adopting AVContentKeySupport for AVSampleBufferDisplayLayer broke Netflix playback on Cocoa
+    ports. Disable that support by hard coding sampleBufferRenderersSupportKeySession() to
+    return false.
+    
+    * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
+    (WebCore::sampleBufferRenderersSupportKeySession):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-02-22  Jer Noble  <[email protected]>
+
+            [Cocoa] Partial rollout of r289946, broke Netflix
+            https://bugs.webkit.org/show_bug.cgi?id=237019
+            <rdar://89261425>
+
+            Reviewed by Eric Carlson.
+
+            Adopting AVContentKeySupport for AVSampleBufferDisplayLayer broke Netflix playback on Cocoa
+            ports. Disable that support by hard coding sampleBufferRenderersSupportKeySession() to
+            return false.
+
+            * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
+            (WebCore::sampleBufferRenderersSupportKeySession):
+
 2022-02-19  Chris Dumez  <[email protected]>
 
         Optimize DOM storage event dispatch

Modified: branches/safari-614.1.5-branch/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm (290314 => 290315)


--- branches/safari-614.1.5-branch/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm	2022-02-22 17:50:53 UTC (rev 290314)
+++ branches/safari-614.1.5-branch/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm	2022-02-22 17:53:03 UTC (rev 290315)
@@ -284,11 +284,6 @@
 static bool sampleBufferRenderersSupportKeySession()
 {
     static bool supports = false;
-    static dispatch_once_t onceToken;
-    dispatch_once(&onceToken, [&] {
-        supports = [PAL::getAVSampleBufferAudioRendererClass() conformsToProtocol:@protocol(AVContentKeyRecipient)]
-            && [PAL::getAVSampleBufferDisplayLayerClass() conformsToProtocol:@protocol(AVContentKeyRecipient)];
-    });
     return supports;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to