| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 if (last_received_timestamp_ != rtp_header.timestamp) { | 193 if (last_received_timestamp_ != rtp_header.timestamp) { |
| 194 last_received_timestamp_ = rtp_header.timestamp; | 194 last_received_timestamp_ = rtp_header.timestamp; |
| 195 last_received_frame_time_ms_ = clock_->TimeInMilliseconds(); | 195 last_received_frame_time_ms_ = clock_->TimeInMilliseconds(); |
| 196 } | 196 } |
| 197 last_received_sequence_number_ = rtp_header.sequenceNumber; | 197 last_received_sequence_number_ = rtp_header.sequenceNumber; |
| 198 } | 198 } |
| 199 } | 199 } |
| 200 return true; | 200 return true; |
| 201 } | 201 } |
| 202 | 202 |
| 203 TelephoneEventHandler* RtpReceiverImpl::GetTelephoneEventHandler() { | |
| 204 return rtp_media_receiver_->GetTelephoneEventHandler(); | |
| 205 } | |
| 206 | |
| 207 bool RtpReceiverImpl::Timestamp(uint32_t* timestamp) const { | 203 bool RtpReceiverImpl::Timestamp(uint32_t* timestamp) const { |
| 208 rtc::CritScope lock(&critical_section_rtp_receiver_); | 204 rtc::CritScope lock(&critical_section_rtp_receiver_); |
| 209 if (!HaveReceivedFrame()) | 205 if (!HaveReceivedFrame()) |
| 210 return false; | 206 return false; |
| 211 *timestamp = last_received_timestamp_; | 207 *timestamp = last_received_timestamp_; |
| 212 return true; | 208 return true; |
| 213 } | 209 } |
| 214 | 210 |
| 215 bool RtpReceiverImpl::LastReceivedTimeMs(int64_t* receive_time_ms) const { | 211 bool RtpReceiverImpl::LastReceivedTimeMs(int64_t* receive_time_ms) const { |
| 216 rtc::CritScope lock(&critical_section_rtp_receiver_); | 212 rtc::CritScope lock(&critical_section_rtp_receiver_); |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // implementations might have CSRC 0 as a valid value. | 452 // implementations might have CSRC 0 as a valid value. |
| 457 if (num_csrcs_diff > 0) { | 453 if (num_csrcs_diff > 0) { |
| 458 cb_rtp_feedback_->OnIncomingCSRCChanged(0, true); | 454 cb_rtp_feedback_->OnIncomingCSRCChanged(0, true); |
| 459 } else if (num_csrcs_diff < 0) { | 455 } else if (num_csrcs_diff < 0) { |
| 460 cb_rtp_feedback_->OnIncomingCSRCChanged(0, false); | 456 cb_rtp_feedback_->OnIncomingCSRCChanged(0, false); |
| 461 } | 457 } |
| 462 } | 458 } |
| 463 } | 459 } |
| 464 | 460 |
| 465 } // namespace webrtc | 461 } // namespace webrtc |
| OLD | NEW |