Index: webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.cc |
diff --git a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.cc b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.cc |
index 4f799b3f7de0b3b4b8cf4003447dc23f562b6dae..d3dcfca6e05be0ab28dcdf5924bbfc09e01451ff 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.cc |
+++ b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.cc |
@@ -94,7 +94,6 @@ bool RemoteBitrateEstimatorAbsSendTime::IsWithinClusterBounds( |
uma_recorded_(false) { |
RTC_DCHECK(observer_); |
LOG(LS_INFO) << "RemoteBitrateEstimatorAbsSendTime: Instantiating."; |
- network_thread_.DetachFromThread(); |
} |
void RemoteBitrateEstimatorAbsSendTime::ComputeClusters( |
@@ -211,7 +210,7 @@ void RemoteBitrateEstimatorAbsSendTime::IncomingPacket( |
int64_t arrival_time_ms, |
size_t payload_size, |
const RTPHeader& header) { |
- RTC_DCHECK(network_thread_.CalledOnValidThread()); |
+ RTC_DCHECK_RUNS_SERIALIZED(&network_race_); |
if (!header.extension.hasAbsoluteSendTime) { |
LOG(LS_WARNING) << "RemoteBitrateEstimatorAbsSendTimeImpl: Incoming packet " |
"is missing absolute send time extension!"; |