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

Issue 2573443002: Skip RTCMediaStreamTrackStats.echoReturnLoss[Enhancement] default value. (Closed)

Created:
4 years ago by hbos
Modified:
4 years ago
Reviewers:
ivoc, hta-webrtc
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Skip RTCMediaStreamTrackStats.echoReturnLoss[Enhancement] default value. Due to the Chromium implementation[1] of GetAudioProcesssingStats, echoReturnLoss and echoReturnLossEnhancement could default to -100 when no value was available. This should be improved by using rtc::Optional or AudioProcessorInterface::GetStats being able to return false, but this requires a bunch of refactoring. In the meantime we "blacklist" the value -100 which is a nonsense value anyway. In that case echoReturnLoss[Enhancement] is correctly left undefined. [1] https://cs.chromium.org/chromium/src/content/renderer/media/media_stream_audio_processor_options.cc?sq=package:chromium&dr=C&rcl=1481530670&l=461 BUG=chromium:669877 Committed: https://crrev.com/9a394f0649d39737a791d17e73ad2603e3d162fb Cr-Commit-Position: refs/heads/master@{#15611}

Patch Set 1 #

Patch Set 2 : Unittest for the -100 = undefined case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M webrtc/api/rtcstatscollector.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M webrtc/api/rtcstatscollector_unittest.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
hbos
Please take a look, ivoc and hta.
4 years ago (2016-12-12 14:22:40 UTC) #2
hta-webrtc
lgtm However, would be nice to have an unittest.
4 years ago (2016-12-12 16:02:29 UTC) #3
ivoc
lgtm, but note that there are various other audio stats that use dummy default values.
4 years ago (2016-12-12 16:04:05 UTC) #4
hbos
On 2016/12/12 16:02:29, hta-webrtc wrote: > lgtm > > However, would be nice to have ...
4 years ago (2016-12-14 15:44:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2573443002/20001
4 years ago (2016-12-14 15:44:30 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-14 15:58:26 UTC) #11
commit-bot: I haz the power
4 years ago (2016-12-14 15:58:35 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9a394f0649d39737a791d17e73ad2603e3d162fb
Cr-Commit-Position: refs/heads/master@{#15611}

Powered by Google App Engine
This is Rietveld 408576698