Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 15a1de2814bc521c737a4370fc2eef779005398c
      
https://github.com/WebKit/WebKit/commit/15a1de2814bc521c737a4370fc2eef779005398c
  Author: Andy Estes <[email protected]>
  Date:   2023-12-13 (Wed, 13 Dec 2023)

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

  Log Message:
  -----------
  REGRESSION (271966@main): Netflix playback fails on iPadOS after adopting 
AVSampleBufferAttachContentKey
https://bugs.webkit.org/show_bug.cgi?id=266375
rdar://119345487

Reviewed by Jer Noble.

On iOS a key may be usable for decryption even when its status isn't 
KeyStatus::Usable. Accounted
for this by reusing the logic in 
CDMInstanceFairPlayStreamingAVFObjC::isAnyKeyUsable to determine if
a key is usable. Also asserted that there is no usable key whenever
CDMInstanceSessionFairPlayStreamingAVFObjC::contentKeyForSample returns nil.

* 
Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.h:
* 
Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
(WebCore::isPotentiallyUsableKeyStatus):
(WebCore::CDMInstanceFairPlayStreamingAVFObjC::isAnyKeyUsable const):
(WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::isAnyKeyUsable const):
(WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::contentKeyForSample):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to