diff --git a/Source/WebCore/platform/encryptedmedia/CDMPrivate.cpp b/Source/WebCore/platform/encryptedmedia/CDMPrivate.cpp index 88ff86897d1e5..566b8c029cbcf 100644 --- a/Source/WebCore/platform/encryptedmedia/CDMPrivate.cpp +++ b/Source/WebCore/platform/encryptedmedia/CDMPrivate.cpp @@ -420,7 +420,7 @@ std::optional> CDMPrivate::getSupportedCapabilitiesFo // combination of container, media types, robustness and local accumulated configuration in combination // with restrictions: MediaEngineSupportParameters parameters; - parameters.type = ContentType(contentType->mimeType()); + parameters.type = ContentType(requestedCapability.contentType); if (MediaPlayer::supportsType(parameters) == MediaPlayer::SupportsType::IsNotSupported) { // Try with Media Source: