Skip to content

Commit 6448608

Browse files
committed
Fix HEVC codec string parsing
Codec string is first moved into lowercase and then compared in uppercase. This is backport of 5ee3f9a from upstream: Two new failures media/media-can-play-case-sensitive-flac.html, media/media-can-play-type-case-sensitive.html https://bugs.webkit.org/show_bug.cgi?id=260625 Reviewed by Xabier Rodriguez-Calvar. Codec string matching is now case-sensitive in the registry scanner. * LayoutTests/platform/glib/TestExpectations: * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::initializeDecoders): (WebCore::GStreamerRegistryScanner::isContentTypeSupported const): Canonical link: https://commits.webkit.org/267343@main
1 parent cd39126 commit 6448608

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,7 @@ MediaPlayerEnums::SupportsType GStreamerRegistryScanner::isContentTypeSupported(
762762
if (codecs.isEmpty())
763763
return SupportsType::MayBeSupported;
764764

765-
for (const auto& item : codecs) {
766-
auto codec = item.convertToASCIILowercase();
765+
for (const auto& codec : codecs) {
767766
bool requiresHardwareSupport = contentTypesRequiringHardwareSupport
768767
.findIf([containerType, codec](auto& hardwareContentType) -> bool {
769768
auto hardwareContainer = hardwareContentType.containerType();

0 commit comments

Comments
 (0)