diff --git a/test/pc/e2e/analyzer/audio/default_audio_quality_analyzer.cc b/test/pc/e2e/analyzer/audio/default_audio_quality_analyzer.cc index 04bb7bfa9d..8859ede3ac 100644 --- a/test/pc/e2e/analyzer/audio/default_audio_quality_analyzer.cc +++ b/test/pc/e2e/analyzer/audio/default_audio_quality_analyzer.cc @@ -45,14 +45,13 @@ void DefaultAudioQualityAnalyzer::OnStatsReports( if (strcmp(media_type->static_string_val(), kStatsAudioMediaType) != 0) { continue; } - const webrtc::StatsReport::Value* packets_received = - stats_report->FindValue( - StatsReport::StatsValueName::kStatsValueNamePacketsReceived); - if (!packets_received || packets_received->int_val() == 0) { + const webrtc::StatsReport::Value* bytes_received = stats_report->FindValue( + StatsReport::StatsValueName::kStatsValueNameBytesReceived); + if (bytes_received == nullptr || bytes_received->int64_val() == 0) { // Discarding stats in the following situations: - // - When packets_received is not present, because NetEq stats are only + // - When bytes_received is not present, because NetEq stats are only // available in recv-side SSRC. - // - When packets_received is present but its value is 0. This means + // - When bytes_received is present but its value is 0. This means // that media is not yet flowing so there is no need to keep this // stats report into account (since all its fields would be 0). continue;