mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 00:57:49 +01:00
Return a copy, becase GetPercentile in SamplesStatsCounter isn't const
Bug: webrtc:10138 Change-Id: I2ec2ce4765e514bfd065f094f5905233e5f4f9cd Reviewed-on: https://webrtc-review.googlesource.com/c/123043 Reviewed-by: Peter Slatala <psla@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26697}
This commit is contained in:
parent
cf8405e172
commit
ceba6ae2a7
2 changed files with 5 additions and 5 deletions
|
@ -316,13 +316,13 @@ DefaultVideoQualityAnalyzer::GetPerStreamCounters() const {
|
|||
return stream_frame_counters_;
|
||||
}
|
||||
|
||||
const std::map<std::string, StreamStats>&
|
||||
DefaultVideoQualityAnalyzer::GetStats() const {
|
||||
std::map<std::string, StreamStats> DefaultVideoQualityAnalyzer::GetStats()
|
||||
const {
|
||||
rtc::CritScope cri(&comparison_lock_);
|
||||
return stream_stats_;
|
||||
}
|
||||
|
||||
const AnalyzerStats& DefaultVideoQualityAnalyzer::GetAnalyzerStats() const {
|
||||
AnalyzerStats DefaultVideoQualityAnalyzer::GetAnalyzerStats() const {
|
||||
rtc::CritScope crit(&comparison_lock_);
|
||||
return analyzer_stats_;
|
||||
}
|
||||
|
|
|
@ -145,8 +145,8 @@ class DefaultVideoQualityAnalyzer : public VideoQualityAnalyzerInterface {
|
|||
const std::map<std::string, FrameCounters>& GetPerStreamCounters() const;
|
||||
// Returns video quality stats per stream label. Valid stream labels can be
|
||||
// obtained by calling GetKnownVideoStreams()
|
||||
const std::map<std::string, StreamStats>& GetStats() const;
|
||||
const AnalyzerStats& GetAnalyzerStats() const;
|
||||
std::map<std::string, StreamStats> GetStats() const;
|
||||
AnalyzerStats GetAnalyzerStats() const;
|
||||
|
||||
private:
|
||||
struct FrameStats {
|
||||
|
|
Loading…
Reference in a new issue