Bug 1885026 - don't show warning for NS_ERROR_DOM_MEDIA_EXTERNAL_ENGINE_NOT_SUPPORTED_ERR. r=media-playback-reviewers,padenot

`NS_ERROR_DOM_MEDIA_EXTERNAL_ENGINE_NOT_SUPPORTED_ERR` is an internal
error we use to switch the decoder state machine, this is not a real
error which should be warned.

Differential Revision: https://phabricator.services.mozilla.com/D204429
This commit is contained in:
alwu 2024-03-13 16:51:45 +00:00
parent cc0efecf5c
commit c1fffe2d9b

View file

@ -163,7 +163,9 @@ bool MediaDecoderStateMachineBase::OnTaskQueue() const {
void MediaDecoderStateMachineBase::DecodeError(const MediaResult& aError) {
MOZ_ASSERT(OnTaskQueue());
LOGE("Decode error: %s", aError.Description().get());
if (aError != NS_ERROR_DOM_MEDIA_EXTERNAL_ENGINE_NOT_SUPPORTED_ERR) {
LOGE("Decode error: %s", aError.Description().get());
}
PROFILER_MARKER_TEXT("MDSMBase::DecodeError", MEDIA_PLAYBACK, {},
aError.Description());
// Notify the decode error and MediaDecoder will shut down MDSM.