Index: webrtc/video/receive_statistics_proxy.h |
diff --git a/webrtc/video/receive_statistics_proxy.h b/webrtc/video/receive_statistics_proxy.h |
index f88bbf51a27bcff761950c715252c4f204086ce9..7d4166f878038fb6f4d1559007cb9735e85ef32a 100644 |
--- a/webrtc/video/receive_statistics_proxy.h |
+++ b/webrtc/video/receive_statistics_proxy.h |
@@ -37,7 +37,7 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback, |
public RtcpPacketTypeCounterObserver, |
public StreamDataCountersCallback { |
public: |
- ReceiveStatisticsProxy(const VideoReceiveStream::Config& config, |
+ ReceiveStatisticsProxy(const VideoReceiveStream::Config* config, |
Clock* clock); |
virtual ~ReceiveStatisticsProxy(); |
@@ -96,7 +96,9 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback, |
void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
Clock* const clock_; |
- const VideoReceiveStream::Config config_; |
+ // Ownership of this object lies with the owner of the ReceiveStatisticsProxy |
+ // instance. Lifetime is guaranteed to outlive |this|. |
+ const VideoReceiveStream::Config& config_; |
rtc::CriticalSection crit_; |
VideoReceiveStream::Stats stats_ GUARDED_BY(crit_); |