[webkit-changes] [WebKit/WebKit] 14bba7: [GStreamer][EME] Prevent race conditions when flus...

Xabier Rodríguez noreply at github.com
Tue Oct 18 06:02:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 14bba72947fdcef536f4fa5fa7a0a27f7b68ab07
      https://github.com/WebKit/WebKit/commit/14bba72947fdcef536f4fa5fa7a0a27f7b68ab07
  Author: Xabier Rodriguez-Calvar <calvaris at igalia.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp

  Log Message:
  -----------
  [GStreamer][EME] Prevent race conditions when flushing
https://bugs.webkit.org/show_bug.cgi?id=246682

Reviewed by Philippe Normand.

In some cases, decryption can be slower than flush processing and we might be setting and unsetting the flushing flag
without the decryption thread noticing. We add a small state machine to ensure that if we get a flush while decrypting,
we are going to ditch that buffer even if the result was correctly decrypted.

* Source/WebCore/platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp:
(transformInPlace):
(sinkEventHandler):

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




More information about the webkit-changes mailing list