Log status code in error when CDM fails to decode
Categories
(Core :: Audio/Video: Playback, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox80 | --- | fixed |
People
(Reporter: bryce, Assigned: bryce)
Details
Attachments
(2 files)
If the CDM fails to decode data we will receive a message from it indicating a failed decode[0]. This message contains an numerical value corresponding to an enum in the CDM headers. We should surface this on the error we return to help debug issues. This is useful in various cases:
- Web devs have a status code they can give to us in cases they catch errors we surface.
- The code will show up in the profiler now that we log these errors
- This helps make user profiles more useful
- This helps devs more quickly discover the error via the profiler rather than needing to debug and/or enable logs
[0] https://searchfox.org/mozilla-central/rev/89814940895946b48b4c04c702efd2c676ec8e7e/dom/media/gmp/ChromiumCDMParent.cpp#850
[1] https://searchfox.org/mozilla-central/rev/89814940895946b48b4c04c702efd2c676ec8e7e/dom/media/MediaDecoderStateMachine.cpp#3471
| Assignee | ||
Comment 1•5 years ago
|
||
Also add a log for when decoding fails. We typically log on any unhappy return
values from the CDM, so it makes sense we should also do so when a decode fails.
| Assignee | ||
Comment 2•5 years ago
|
||
- Add a helper to log cdm::Status as a string to improve error reporting.
- Fix up format strings in ChromiumCDMParent to use PRIu32 instead of u for logs
where it's appropriate.
Depends on D83419
Comment 4•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/909c7df4e04b
https://hg.mozilla.org/mozilla-central/rev/3a2adb2b3c4b
Description
•