Repository navigation
[MediaCapabilities][GST] Check audio codecs support isConfigurationSu… - #1640
Closed
asurdej-comcast wants to merge 1 commit into
Closed
asurdej-comcast wants to merge 1 commit into
asurdej-comcast wants to merge 1 commit into
Conversation
…pported() Previously, isConfigurationSupported() only validated video codecs against the registered decoder/encoder map; audio codecs from the audio configuration were never checked, so unsupported audio codecs would incorrectly be reported as supported. Fix this by collecting codec strings from both the video and audio ContentType objects into a single vector and running the software and hardware codec support checks once on the combined list at the end of the function.
Member
|
Looks good. Submitted for upstream review as https://bugs.webkit.org/show_bug.cgi?id=310195 / WebKit/WebKit#60871. |
webkit-commit-queue
pushed a commit
to eocanha/WebKit
that referenced
this pull request
Mar 25, 2026
…tionSupported() https://bugs.webkit.org/show_bug.cgi?id=310195 Reviewed by Xabier Rodriguez-Calvar. Currently, isConfigurationSupported() only validates video codecs against the registered decoder/encoder map. Audio codecs from the audio configuration were never checked, so unsupported audio codecs could incorrectly be reported as supported. See: WebPlatformForEmbedded/WPEWebKit#1640 Fix this by collecting codec strings from both the video and audio ContentType objects into a single vector and running the software codec support checks once on the combined list at the end of the function. Audio hardware accelerated decoding doesn't save much CPU power compared to video accelerated decoding, and we don't want to reject a video+audio codec combination just because the audio part isn't accelerated. That's why the hardware accelerated decoding support checks are only run on the video codecs. A new platform-specific layout test has been added to check that common audio formats and codecs are properly detected (but without power-efficient decoding, that is, without hardware decoding), while an unexistent "fictional" codec is rejected. Co-authored by: Andrzej Surdej (https://github.com/asurdej-comcast) * LayoutTests/platform/glib/media/mediacapabilities/audio-decoding-info-expected.txt: Added. * LayoutTests/platform/glib/media/mediacapabilities/audio-decoding-info.html: Added. * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::isConfigurationSupported const): Collect audio codecs and run the codec checks. Canonical link: https://commits.webkit.org/309939@main
eocanha
added a commit
that referenced
this pull request
Mar 25, 2026
…tionSupported() https://bugs.webkit.org/show_bug.cgi?id=310195 Reviewed by Xabier Rodriguez-Calvar. Currently, isConfigurationSupported() only validates video codecs against the registered decoder/encoder map. Audio codecs from the audio configuration were never checked, so unsupported audio codecs could incorrectly be reported as supported. See: #1640 Fix this by collecting codec strings from both the video and audio ContentType objects into a single vector and running the software codec support checks once on the combined list at the end of the function. Audio hardware accelerated decoding doesn't save much CPU power compared to video accelerated decoding, and we don't want to reject a video+audio codec combination just because the audio part isn't accelerated. That's why the hardware accelerated decoding support checks are only run on the video codecs. A new platform-specific layout test has been added to check that common audio formats and codecs are properly detected (but without power-efficient decoding, that is, without hardware decoding), while an unexistent "fictional" codec is rejected. Co-authored by: Andrzej Surdej (https://github.com/asurdej-comcast) * LayoutTests/platform/glib/media/mediacapabilities/audio-decoding-info-expected.txt: Added. * LayoutTests/platform/glib/media/mediacapabilities/audio-decoding-info.html: Added. * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::isConfigurationSupported const): Collect audio codecs and run the codec checks. Canonical link: https://commits.webkit.org/309939@main
Member
|
PR landed upstream as WebKit/WebKit@e89e1a0 and backported to wpe-2.46 as 2ad5899. Closing PR. |
justinmichaud
pushed a commit
to justinmichaud/WebKit
that referenced
this pull request
Jul 6, 2026
…tionSupported() https://bugs.webkit.org/show_bug.cgi?id=310195 Reviewed by Xabier Rodriguez-Calvar. Currently, isConfigurationSupported() only validates video codecs against the registered decoder/encoder map. Audio codecs from the audio configuration were never checked, so unsupported audio codecs could incorrectly be reported as supported. See: WebPlatformForEmbedded/WPEWebKit#1640 Fix this by collecting codec strings from both the video and audio ContentType objects into a single vector and running the software codec support checks once on the combined list at the end of the function. Audio hardware accelerated decoding doesn't save much CPU power compared to video accelerated decoding, and we don't want to reject a video+audio codec combination just because the audio part isn't accelerated. That's why the hardware accelerated decoding support checks are only run on the video codecs. A new platform-specific layout test has been added to check that common audio formats and codecs are properly detected (but without power-efficient decoding, that is, without hardware decoding), while an unexistent "fictional" codec is rejected. Co-authored by: Andrzej Surdej (https://github.com/asurdej-comcast) * LayoutTests/platform/glib/media/mediacapabilities/audio-decoding-info-expected.txt: Added. * LayoutTests/platform/glib/media/mediacapabilities/audio-decoding-info.html: Added. * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::isConfigurationSupported const): Collect audio codecs and run the codec checks. Canonical link: https://commits.webkit.org/309939@main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…pported()
Previously, isConfigurationSupported() only validated video codecs against the registered decoder/encoder map; audio codecs from the audio configuration were never checked, so unsupported audio codecs would incorrectly be reported as supported.
Fix this by collecting codec strings from both the video and audio ContentType objects into a single vector and running the software and hardware codec support checks once on the combined list at the end of the function.
a8e4be0