Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1037)

Issue 1304173002: Log error instead of CHECKing input audio sequence. (Closed)

Created:
5 years, 4 months ago by Henrik Grunell
Modified:
5 years, 3 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, posciak+watch_chromium.org, jam, imcheng+watch_chromium.org, mlamouri+watch-content_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org, hubbe+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log error instead of CHECKing input audio sequence. The check was landed yesterday (https://codereview.chromium.org/1293503002/) and we hit it on bots already, which gives good information to investigate. We need to keep the bots green, so changing it to log error instead. Implementation details: AudioCapturerSource::CaptureCallback::OnCaptureError now takes a message string. The webrtc capturer implementation of that function the logs message to the WebRTC log. If the sequence is incorrect in AudioInputDevice::AudioThreadCallback::Process we call OnCaptureError and also log to the Chrome log. TBR'ing Dale for media/base/audio_capturer_source.h - this CL fixes ~50 % fail on Linux tsan bot so I' want to land it asap. TBR=dalecurtis@chromium.org BUG=523224, 519336 Committed: https://crrev.com/f5157bcf31af480a5462729a117fb2742a3d1224 Cr-Commit-Position: refs/heads/master@{#344835}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -12 lines) Patch
M chrome/renderer/media/cast_receiver_audio_valve.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/media/cast_receiver_audio_valve.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/media/cast_receiver_session.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_capturer.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/audio_input_device.cc View 1 4 chunks +17 lines, -4 lines 0 comments Download
M media/base/audio_capturer_source.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (5 generated)
Henrik Grunell
5 years, 4 months ago (2015-08-21 11:27:49 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/1304173002/diff/1/media/audio/audio_input_device.cc File media/audio/audio_input_device.cc (right): https://codereview.chromium.org/1304173002/diff/1/media/audio/audio_input_device.cc#newcode183 media/audio/audio_input_device.cc:183: callback_->OnCaptureError("AudioInputDevice::OnStateChanged(ERROR)"); nit: "AudioInputDevice::OnStateChanged - audio thread still running" https://codereview.chromium.org/1304173002/diff/1/media/audio/audio_input_device.cc#newcode318 ...
5 years, 4 months ago (2015-08-21 11:57:01 UTC) #3
Henrik Grunell
https://codereview.chromium.org/1304173002/diff/1/media/audio/audio_input_device.cc File media/audio/audio_input_device.cc (right): https://codereview.chromium.org/1304173002/diff/1/media/audio/audio_input_device.cc#newcode183 media/audio/audio_input_device.cc:183: callback_->OnCaptureError("AudioInputDevice::OnStateChanged(ERROR)"); On 2015/08/21 11:57:01, tommi wrote: > nit: "AudioInputDevice::OnStateChanged ...
5 years, 4 months ago (2015-08-21 13:15:33 UTC) #5
tommi (sloooow) - chröme
lgtm
5 years, 4 months ago (2015-08-21 14:12:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304173002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304173002/20001
5 years, 4 months ago (2015-08-21 14:16:26 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/102335)
5 years, 4 months ago (2015-08-21 15:41:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304173002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304173002/20001
5 years, 4 months ago (2015-08-21 18:49:27 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 4 months ago (2015-08-21 19:37:35 UTC) #13
commit-bot: I haz the power
5 years, 4 months ago (2015-08-21 19:38:31 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f5157bcf31af480a5462729a117fb2742a3d1224
Cr-Commit-Position: refs/heads/master@{#344835}

Powered by Google App Engine
This is Rietveld 408576698