OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 update_estimate = remote_rate_.ValidEstimate(); | 326 update_estimate = remote_rate_.ValidEstimate(); |
327 ssrcs = Keys(ssrcs_); | 327 ssrcs = Keys(ssrcs_); |
328 } | 328 } |
329 } | 329 } |
330 if (update_estimate) { | 330 if (update_estimate) { |
331 last_update_ms_ = now_ms; | 331 last_update_ms_ = now_ms; |
332 observer_->OnReceiveBitrateChanged(ssrcs, target_bitrate_bps); | 332 observer_->OnReceiveBitrateChanged(ssrcs, target_bitrate_bps); |
333 } | 333 } |
334 } | 334 } |
335 | 335 |
336 void RemoteBitrateEstimatorAbsSendTime::Process() {} | 336 int32_t RemoteBitrateEstimatorAbsSendTime::Process() { |
| 337 return 0; |
| 338 } |
337 | 339 |
338 int64_t RemoteBitrateEstimatorAbsSendTime::TimeUntilNextProcess() { | 340 int64_t RemoteBitrateEstimatorAbsSendTime::TimeUntilNextProcess() { |
339 const int64_t kDisabledModuleTime = 1000; | 341 const int64_t kDisabledModuleTime = 1000; |
340 return kDisabledModuleTime; | 342 return kDisabledModuleTime; |
341 } | 343 } |
342 | 344 |
343 void RemoteBitrateEstimatorAbsSendTime::TimeoutStreams(int64_t now_ms) { | 345 void RemoteBitrateEstimatorAbsSendTime::TimeoutStreams(int64_t now_ms) { |
344 for (Ssrcs::iterator it = ssrcs_.begin(); it != ssrcs_.end();) { | 346 for (Ssrcs::iterator it = ssrcs_.begin(); it != ssrcs_.end();) { |
345 if ((now_ms - it->second) > kStreamTimeOutMs) { | 347 if ((now_ms - it->second) > kStreamTimeOutMs) { |
346 ssrcs_.erase(it++); | 348 ssrcs_.erase(it++); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 return true; | 394 return true; |
393 } | 395 } |
394 | 396 |
395 void RemoteBitrateEstimatorAbsSendTime::SetMinBitrate(int min_bitrate_bps) { | 397 void RemoteBitrateEstimatorAbsSendTime::SetMinBitrate(int min_bitrate_bps) { |
396 // Called from both the configuration thread and the network thread. Shouldn't | 398 // Called from both the configuration thread and the network thread. Shouldn't |
397 // be called from the network thread in the future. | 399 // be called from the network thread in the future. |
398 rtc::CritScope lock(&crit_); | 400 rtc::CritScope lock(&crit_); |
399 remote_rate_.SetMinBitrate(min_bitrate_bps); | 401 remote_rate_.SetMinBitrate(min_bitrate_bps); |
400 } | 402 } |
401 } // namespace webrtc | 403 } // namespace webrtc |
OLD | NEW |