Remove `DecodeSupport::Unsupported`
Categories
(Core :: Audio/Video: Playback, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox119 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(2 files)
Two reasons to remove DecodeSupport::Unsupported
- If a
DecodeSupportSetdoesn't set any decode support, then it won't be equal toDecodeSupport::Unsupported
We have many codes to use this pattern, XXX != media::DecodeSupport::Unsupported or XXX == media::DecodeSupport::Unsupported. But this comparison would fail if the DecodeSupportSet is empty.
For example, in MCSInfo::GetDecodeSupportSet(), if there is no support for the codec, that function would return an empty DecodeSupportSet.
An empty DecodeSupportSet is not equal to media::DecodeSupport::Unsupported, so it leads to an incorrect result. DecodeSupportSet{} != media::DecodeSupport::Unsupported will be true, which is not what we expected.
- Semantic meaning
Every flag inEnumSetshould be able to exist in the same time. ButDecodeSupport::Unsupportedis exclusive with other attributes. Eg. It doesn't make sense to have bothUnsupportedandSoftwareDecodeflags on in the same time.
| Assignee | ||
Comment 1•2 years ago
|
||
See more details in Bug 1853057 comment0.
| Assignee | ||
Comment 2•2 years ago
|
||
When asking config in the content process, we should return result based
on the cached result in the remote decoder because we don't want
to run Windows Media Foundation (WMF) in the content process, which
should be better to run only in the higher security sandboxed process.
We use that function in [1] in the content process to indentify what
types the media engine supports.
Comment 4•2 years ago
|
||
Backed out for causing mda failures on test_video_low_power_telemetry.html
Failure log: https://treeherder.mozilla.org/logviewer?job_id=429230657&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/6f38538b7fef8e69ab8bd61c9a9c6afb7890c324
Comment 6•2 years ago
|
||
Relanded this because it turned out to be from Bug 1852806.
Comment 7•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ebd79534e63f
https://hg.mozilla.org/mozilla-central/rev/2ed0045b3cbf
Description
•