DescriptionSkip 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 #
Messages
Total messages: 13 (6 generated)
|