From 9ba33f1ce99343cf2a704324598aa9817b2c30ac Mon Sep 17 00:00:00 2001 From: Tommi Date: Tue, 7 Apr 2020 20:40:23 +0200 Subject: [PATCH] Don't assume we have a worker_thread_ on linux (for now) Tbr: mbonadei@webrtc.org No-Try: true Bug: none Change-Id: I0dca1e54b610b63651235a83ec80f0e7d76f51c4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/173085 Reviewed-by: Tommi Reviewed-by: Mirko Bonadei Commit-Queue: Tommi Cr-Commit-Position: refs/heads/master@{#31019} --- video/receive_statistics_proxy.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/receive_statistics_proxy.cc b/video/receive_statistics_proxy.cc index 223b94341d..882bf71e83 100644 --- a/video/receive_statistics_proxy.cc +++ b/video/receive_statistics_proxy.cc @@ -769,6 +769,7 @@ void ReceiveStatisticsProxy::OnTimingFrameInfoUpdated( void ReceiveStatisticsProxy::RtcpPacketTypesCounterUpdated( uint32_t ssrc, const RtcpPacketTypeCounter& packet_counter) { +#if !defined(WEBRTC_LINUX) if (!worker_thread_->IsCurrent()) { // RtpRtcp::Configuration has a single RtcpPacketTypeCounterObserver and // that same configuration may be used for both receiver and sender @@ -791,6 +792,7 @@ void ReceiveStatisticsProxy::RtcpPacketTypesCounterUpdated( } RTC_DCHECK_RUN_ON(&main_thread_); +#endif rtc::CritScope lock(&crit_); if (stats_.ssrc != ssrc) return;