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
DecodeSupportSet
doesn'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 inEnumSet
should be able to exist in the same time. ButDecodeSupport::Unsupported
is exclusive with other attributes. Eg. It doesn't make sense to have bothUnsupported
andSoftwareDecode
flags on in the same time.
Assignee | ||
Comment 1•14 days ago
|
||
See more details in Bug 1853057 comment0.
Assignee | ||
Comment 2•13 days 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.
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/34cf458aac56 remove DecodeSupport::Unsupport. r=azebrowski https://hg.mozilla.org/integration/autoland/rev/064771e8ad7a use the cached remote result to anwser the support information. r=jolin
Comment 4•13 days 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
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ebd79534e63f remove DecodeSupport::Unsupport. r=azebrowski https://hg.mozilla.org/integration/autoland/rev/2ed0045b3cbf use the cached remote result to anwser the support information. r=jolin
Comment 6•13 days ago
|
||
Relanded this because it turned out to be from Bug 1852806.
Comment 7•13 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ebd79534e63f
https://hg.mozilla.org/mozilla-central/rev/2ed0045b3cbf
Description
•