Fix setting max reordering threshold in ReceiveStatistics
By ensuring new max reordering threshold applies to future statisticians too. Bug: b/38179459 Change-Id: I0df32fb893a930b93faaf2161cd03626f9544a74 Reviewed-on: https://webrtc-review.googlesource.com/c/111752 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25756}
This commit is contained in:

committed by
Commit Bot

parent
286df00f72
commit
ebb50c217d
@ -19,6 +19,7 @@
|
||||
|
||||
#include "rtc_base/criticalsection.h"
|
||||
#include "rtc_base/rate_statistics.h"
|
||||
#include "rtc_base/thread_annotations.h"
|
||||
#include "system_wrappers/include/ntp_time.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -29,6 +30,7 @@ class StreamStatisticianImpl : public StreamStatistician,
|
||||
StreamStatisticianImpl(uint32_t ssrc,
|
||||
Clock* clock,
|
||||
bool enable_retransmit_detection,
|
||||
int max_reordering_threshold,
|
||||
RtcpStatisticsCallback* rtcp_callback,
|
||||
StreamDataCountersCallback* rtp_callback);
|
||||
~StreamStatisticianImpl() override;
|
||||
@ -128,7 +130,9 @@ class ReceiveStatisticsImpl : public ReceiveStatistics,
|
||||
Clock* const clock_;
|
||||
rtc::CriticalSection receive_statistics_lock_;
|
||||
uint32_t last_returned_ssrc_;
|
||||
std::map<uint32_t, StreamStatisticianImpl*> statisticians_;
|
||||
int max_reordering_threshold_ RTC_GUARDED_BY(receive_statistics_lock_);
|
||||
std::map<uint32_t, StreamStatisticianImpl*> statisticians_
|
||||
RTC_GUARDED_BY(receive_statistics_lock_);
|
||||
|
||||
RtcpStatisticsCallback* rtcp_stats_callback_;
|
||||
StreamDataCountersCallback* rtp_stats_callback_;
|
||||
|
Reference in New Issue
Block a user