[webkit-changes] [WebKit/WebKit] 961094: [GStreamer][EME] Decryptor should be able to work ...

Xabier Rodríguez noreply at github.com
Tue Sep 27 07:20:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9610941b7e544003021f04faf8f1f033be125866
      https://github.com/WebKit/WebKit/commit/9610941b7e544003021f04faf8f1f033be125866
  Author: Xabier Rodriguez-Calvar <calvaris at igalia.com>
  Date:   2022-09-27 (Tue, 27 Sep 2022)

  Changed paths:
    M LayoutTests/media/encrypted-media/encrypted-media-append-encrypted-unencrypted-expected.txt
    M LayoutTests/media/encrypted-media/encrypted-media-append-encrypted-unencrypted.html
    M Source/WebCore/platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp

  Log Message:
  -----------
  [GStreamer][EME] Decryptor should be able to work in passthrough mode
https://bugs.webkit.org/show_bug.cgi?id=245575

Reviewed by Philippe Normand.

In some cases, some websites append unencrypted content (ads) while encrypted content is playing.
To make this work we can set the decryptor in passthrough mode. For that we check the sink caps
against the source caps and if they match, we can set the object in passthrough mode and let the
super class handle the buffers.

Test: media/encrypted-media/encrypted-media-append-encrypted-unencrypted.html.

* LayoutTests/media/encrypted-media/encrypted-media-append-encrypted-unencrypted-expected.txt:
* LayoutTests/media/encrypted-media/encrypted-media-append-encrypted-unencrypted.html:
* Source/WebCore/platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp:
(webkit_media_common_encryption_decrypt_class_init):
(transformCaps):
(acceptCaps):

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




More information about the webkit-changes mailing list