Changeset 266992 in webkit


Ignore:
Timestamp:
Sep 13, 2020 5:07:50 AM (4 years ago)
Author:
Philippe Normand
Message:

Unreviewed, GTK/WPE EME build fixes after r266721

The Thunder decryptor changes were not tested before landing, this code path is not enabled
on any bot currently, hence requires manual testing.

  • platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.cpp:

(protectionSystemId):
(cdmProxyAttached):
(decrypt):

  • platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r266991 r266992  
     12020-09-13  Philippe Normand  <pnormand@igalia.com>
     2
     3        Unreviewed, GTK/WPE EME build fixes after r266721
     4
     5        The Thunder decryptor changes were not tested before landing, this code path is not enabled
     6        on any bot currently, hence requires manual testing.
     7
     8        * platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.cpp:
     9        (protectionSystemId):
     10        (cdmProxyAttached):
     11        (decrypt):
     12        * platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.h:
     13
    1142020-09-13  Rob Buis  <rbuis@igalia.com>
    215
  • trunk/Source/WebCore/platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.cpp

    r266721 r266992  
    3535using namespace WebCore;
    3636
    37 struct _WebKitMediaThunderDecryptPrivate {
     37struct WebKitMediaThunderDecryptPrivate {
    3838    RefPtr<CDMProxyThunder> cdmProxy;
    3939};
     
    106106}
    107107
    108 static const char* protectionSystemId(WebKitMediaCommonEncryptionDecrypt* self)
     108static const char* protectionSystemId(WebKitMediaCommonEncryptionDecrypt* decryptor)
    109109{
    110     WebKitMediaThunderDecryptPrivate* priv = WEBKIT_MEDIA_THUNDER_DECRYPT_GET_PRIVATE(WEBKIT_MEDIA_THUNDER_DECRYPT(self));
    111     ASSERT(priv->cdmProxy);
    112     return GStreamerEMEUtilities::keySystemToUuid(priv->cdmProxy->keySystem());
     110    auto* self = WEBKIT_MEDIA_THUNDER_DECRYPT(decryptor);
     111    ASSERT(self->priv->cdmProxy);
     112    return GStreamerEMEUtilities::keySystemToUuid(self->priv->cdmProxy->keySystem());
    113113}
    114114
    115 static bool cdmProxyAttached(WebKitMediaCommonEncryptionDecrypt* self, const RefPtr<CDMProxy>& cdmProxy)
     115static bool cdmProxyAttached(WebKitMediaCommonEncryptionDecrypt* decryptor, const RefPtr<CDMProxy>& cdmProxy)
    116116{
    117     WebKitMediaThunderDecryptPrivate* priv = WEBKIT_MEDIA_THUNDER_DECRYPT_GET_PRIVATE(WEBKIT_MEDIA_THUNDER_DECRYPT(self));
    118     priv->cdmProxy = reinterpret_cast<CDMProxyThunder*>(cdmProxy.get());
    119     return priv->cdmProxy;
     117    auto* self = WEBKIT_MEDIA_THUNDER_DECRYPT(decryptor);
     118    self->priv->cdmProxy = reinterpret_cast<CDMProxyThunder*>(cdmProxy.get());
     119    return self->priv->cdmProxy;
    120120}
    121121
    122 static bool decrypt(WebKitMediaCommonEncryptionDecrypt* self, GstBuffer* ivBuffer, GstBuffer* keyIDBuffer, GstBuffer* buffer, unsigned subsampleCount,
     122static bool decrypt(WebKitMediaCommonEncryptionDecrypt* decryptor, GstBuffer* ivBuffer, GstBuffer* keyIDBuffer, GstBuffer* buffer, unsigned subsampleCount,
    123123    GstBuffer* subsamplesBuffer)
    124124{
    125     WebKitMediaThunderDecryptPrivate* priv = WEBKIT_MEDIA_THUNDER_DECRYPT_GET_PRIVATE(WEBKIT_MEDIA_THUNDER_DECRYPT(self));
     125    auto* self = WEBKIT_MEDIA_THUNDER_DECRYPT(decryptor);
     126    auto* priv = self->priv;
    126127
    127128    if (!ivBuffer || !keyIDBuffer || !buffer) {
  • trunk/Source/WebCore/platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.h

    r264219 r266992  
    3636typedef struct _WebKitMediaThunderDecrypt        WebKitMediaThunderDecrypt;
    3737typedef struct _WebKitMediaThunderDecryptClass   WebKitMediaThunderDecryptClass;
    38 typedef struct _WebKitMediaThunderDecryptPrivate WebKitMediaThunderDecryptPrivate;
     38struct WebKitMediaThunderDecryptPrivate;
    3939
    4040GType webkit_media_thunder_decrypt_get_type(void);
Note: See TracChangeset for help on using the changeset viewer.