Changeset 266992 in webkit
- Timestamp:
- Sep 13, 2020 5:07:50 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r266991 r266992 1 2020-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 1 14 2020-09-13 Rob Buis <rbuis@igalia.com> 2 15 -
trunk/Source/WebCore/platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.cpp
r266721 r266992 35 35 using namespace WebCore; 36 36 37 struct _WebKitMediaThunderDecryptPrivate {37 struct WebKitMediaThunderDecryptPrivate { 38 38 RefPtr<CDMProxyThunder> cdmProxy; 39 39 }; … … 106 106 } 107 107 108 static const char* protectionSystemId(WebKitMediaCommonEncryptionDecrypt* self)108 static const char* protectionSystemId(WebKitMediaCommonEncryptionDecrypt* decryptor) 109 109 { 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()); 113 113 } 114 114 115 static bool cdmProxyAttached(WebKitMediaCommonEncryptionDecrypt* self, const RefPtr<CDMProxy>& cdmProxy)115 static bool cdmProxyAttached(WebKitMediaCommonEncryptionDecrypt* decryptor, const RefPtr<CDMProxy>& cdmProxy) 116 116 { 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; 120 120 } 121 121 122 static bool decrypt(WebKitMediaCommonEncryptionDecrypt* self, GstBuffer* ivBuffer, GstBuffer* keyIDBuffer, GstBuffer* buffer, unsigned subsampleCount,122 static bool decrypt(WebKitMediaCommonEncryptionDecrypt* decryptor, GstBuffer* ivBuffer, GstBuffer* keyIDBuffer, GstBuffer* buffer, unsigned subsampleCount, 123 123 GstBuffer* subsamplesBuffer) 124 124 { 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; 126 127 127 128 if (!ivBuffer || !keyIDBuffer || !buffer) { -
trunk/Source/WebCore/platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.h
r264219 r266992 36 36 typedef struct _WebKitMediaThunderDecrypt WebKitMediaThunderDecrypt; 37 37 typedef struct _WebKitMediaThunderDecryptClass WebKitMediaThunderDecryptClass; 38 typedef struct _WebKitMediaThunderDecryptPrivateWebKitMediaThunderDecryptPrivate;38 struct WebKitMediaThunderDecryptPrivate; 39 39 40 40 GType webkit_media_thunder_decrypt_get_type(void);
Note: See TracChangeset
for help on using the changeset viewer.