[webkit-changes] [WebKit/WebKit] 781b0d: [Cocoa|MSE] Playback of protected audio tracks stalls

Jer Noble noreply at github.com
Fri Mar 3 08:14:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 781b0d137b97d8f5abaabfa191b9e97eeaf1d399
      https://github.com/WebKit/WebKit/commit/781b0d137b97d8f5abaabfa191b9e97eeaf1d399
  Author: Jer Noble <jer.noble at apple.com>
  Date:   2023-03-03 (Fri, 03 Mar 2023)

  Changed paths:
    A LayoutTests/http/tests/media/fairplay/fps-mse-unmuxed-audio-only-expected.txt
    A LayoutTests/http/tests/media/fairplay/fps-mse-unmuxed-audio-only.html
    M Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm

  Log Message:
  -----------
  [Cocoa|MSE] Playback of protected audio tracks stalls
https://bugs.webkit.org/show_bug.cgi?id=253281
rdar://104882715

Reviewed by Eric Carlson.

In 256805 at main, a check was added to ensure we did not try to enqueue protected samples
if a decompression session existed. However, that did not account for a SampleBuffer with
only a protected audio track. Modify the check to test for the existence of a displayLayer
only if the track in question is the enabled video track.

* LayoutTests/http/tests/media/fairplay/fps-mse-unmuxed-audio-only-expected.txt: Added.
* LayoutTests/http/tests/media/fairplay/fps-mse-unmuxed-audio-only.html: Added.
* Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
(WebCore::SourceBufferPrivateAVFObjC::canEnqueueSample):

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




More information about the webkit-changes mailing list