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

Issue 1469803004: Don't overwrite audio stats when they're not available. (Closed)

Created:
5 years ago by Andrew MacDonald
Modified:
5 years ago
Reviewers:
the sun, tommi
CC:
niklas.enbom, peah-webrtc, qiang.lu, tterriberry_mozilla.com, webrtc-reviews_webrtc.org, yujie_mao (webrtc)
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Don't overwrite audio stats when they're not available. Chromium implements AudioProcessorInterface::GetStats(), but other clients may not. The existing stats were getting overwritten with default AudioProcessorStats values in that case. Now, we only overwrite the stats if the track has an AudioProcessorInterface. Also, move signal level out of SetAudioProcessingStats() to avoid the "don't set if it's -1" pattern. Committed: https://crrev.com/2fe1cb0f0acb66e6f8df47365aac816cb69eb911 Cr-Commit-Position: refs/heads/master@{#10831}

Patch Set 1 #

Patch Set 2 : Move audio level to list. #

Total comments: 8

Patch Set 3 : Add DCHECK for audio level. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -21 lines) Patch
M talk/app/webrtc/statscollector.cc View 1 2 3 chunks +27 lines, -21 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Andrew MacDonald
5 years ago (2015-11-24 01:21:17 UTC) #3
tommi
https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc File talk/app/webrtc/statscollector.cc (right): https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc#newcode191 talk/app/webrtc/statscollector.cc:191: { StatsReport::kStatsValueNameAudioInputLevel, info.audio_level}, this doesn't handle (or rather, ignore) ...
5 years ago (2015-11-24 20:29:59 UTC) #4
Andrew MacDonald
https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc File talk/app/webrtc/statscollector.cc (right): https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc#newcode191 talk/app/webrtc/statscollector.cc:191: { StatsReport::kStatsValueNameAudioInputLevel, info.audio_level}, On 2015/11/24 20:29:59, tommi (webrtc) wrote: ...
5 years ago (2015-11-24 22:43:54 UTC) #5
the sun
https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc File talk/app/webrtc/statscollector.cc (right): https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc#newcode191 talk/app/webrtc/statscollector.cc:191: { StatsReport::kStatsValueNameAudioInputLevel, info.audio_level}, On 2015/11/24 22:43:54, Andrew MacDonald wrote: ...
5 years ago (2015-11-25 13:02:17 UTC) #6
tommi
https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc File talk/app/webrtc/statscollector.cc (right): https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc#newcode191 talk/app/webrtc/statscollector.cc:191: { StatsReport::kStatsValueNameAudioInputLevel, info.audio_level}, On 2015/11/25 13:02:17, the sun wrote: ...
5 years ago (2015-11-25 13:11:09 UTC) #7
Andrew MacDonald
https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc File talk/app/webrtc/statscollector.cc (right): https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc#newcode191 talk/app/webrtc/statscollector.cc:191: { StatsReport::kStatsValueNameAudioInputLevel, info.audio_level}, On 2015/11/25 13:11:09, tommi (webrtc) wrote: ...
5 years ago (2015-11-25 18:50:00 UTC) #8
the sun
lgtm https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc File talk/app/webrtc/statscollector.cc (right): https://codereview.webrtc.org/1469803004/diff/20001/talk/app/webrtc/statscollector.cc#newcode898 talk/app/webrtc/statscollector.cc:898: if (track->GetSignalLevel(&signal_level)) On 2015/11/25 13:11:09, tommi (webrtc) wrote: ...
5 years ago (2015-11-26 09:20:03 UTC) #9
tommi
oops, sorry, thought I lgtm-ed it in my last reply.
5 years ago (2015-11-26 16:47:40 UTC) #10
Andrew MacDonald
On 2015/11/26 16:47:40, tommi (webrtc) wrote: > oops, sorry, thought I lgtm-ed it in my ...
5 years ago (2015-11-26 17:06:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469803004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469803004/40001
5 years ago (2015-11-26 17:06:43 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_rel on ...
5 years ago (2015-11-26 19:07:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469803004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469803004/40001
5 years ago (2015-11-28 00:26:11 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-11-28 01:27:39 UTC) #19
commit-bot: I haz the power
5 years ago (2015-11-28 01:27:49 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2fe1cb0f0acb66e6f8df47365aac816cb69eb911
Cr-Commit-Position: refs/heads/master@{#10831}

Powered by Google App Engine
This is Rietveld 408576698