diff options
author | KJ Liew | 2020-07-15 11:24:52 -0700 |
---|---|---|
committer | KJ Liew | 2020-07-15 11:24:52 -0700 |
commit | 1c574814c227b0afc1722759e0d2c30e0675592d (patch) | |
tree | dad9f816b4abf43da3618f78efb071bdc6c429e7 /remove-NotifyError-calls-and-just-send-a-normal-message.patch | |
parent | f4d657aed67ee28740f932d77097c7e0cd88a790 (diff) | |
download | aur-1c574814c227b0afc1722759e0d2c30e0675592d.tar.gz |
chromium-vaapi-84.0.4147.89-1
Diffstat (limited to 'remove-NotifyError-calls-and-just-send-a-normal-message.patch')
-rw-r--r-- | remove-NotifyError-calls-and-just-send-a-normal-message.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/remove-NotifyError-calls-and-just-send-a-normal-message.patch b/remove-NotifyError-calls-and-just-send-a-normal-message.patch new file mode 100644 index 000000000000..ab638bbef026 --- /dev/null +++ b/remove-NotifyError-calls-and-just-send-a-normal-message.patch @@ -0,0 +1,42 @@ +From 3bfec15358b788a2b7e1beefaa177ba84a6da328 Mon Sep 17 00:00:00 2001 +From: Ted Meyer <tmathmeyer@chromium.org> +Date: Mon, 1 Jun 2020 19:31:18 +0000 +Subject: [PATCH] Remove NotifyError calls and just send a normal message + instead + +rewrote the TODO as well. + +Bug: 1088055 +Change-Id: If83ceeb3a786a1813e41bd3ac6c7309791e92400 +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2223010 +Auto-Submit: Ted Meyer <tmathmeyer@chromium.org> +Commit-Queue: Dale Curtis <dalecurtis@chromium.org> +Reviewed-by: Dale Curtis <dalecurtis@chromium.org> +Cr-Commit-Position: refs/heads/master@{#773776} +--- + media/filters/decoder_selector.cc | 12 +++++------- + 1 file changed, 5 insertions(+), 7 deletions(-) + +diff --git a/media/filters/decoder_selector.cc b/media/filters/decoder_selector.cc +index bb06378b92d..9f510bb578c 100644 +--- a/media/filters/decoder_selector.cc ++++ b/media/filters/decoder_selector.cc +@@ -165,13 +165,11 @@ void DecoderSelector<StreamType>::OnDecoderInitializeDone(Status status) { + DCHECK(task_runner_->BelongsToCurrentThread()); + + if (!status.is_ok()) { +- // TODO(tmathmeyer) this might be noisy in media log. Consider batching +- // all failures as causes to a single Status object and only surfacing it if +- // decoder selection fails entirely. +- media_log_->NotifyError( +- Status(StatusCode::kDecoderFailedInitialization) +- .WithData("Decoder name", decoder_->GetDisplayName()) +- .AddCause(std::move(status))); ++ // TODO(tmathmeyer) this was too noisy in media log. Batch all the logs ++ // together and then send them as an informational notice instead of ++ // using NotifyError. ++ MEDIA_LOG(INFO, media_log_) ++ << "Failed to initialize " << decoder_->GetDisplayName(); + + // Try the next decoder on the list. + decoder_.reset(); |