| 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 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 void RTPReceiverStrategy::SetLastMediaSpecificPayload( | 31 void RTPReceiverStrategy::SetLastMediaSpecificPayload( |
| 32 const PayloadUnion& payload) { | 32 const PayloadUnion& payload) { |
| 33 CriticalSectionScoped cs(crit_sect_.get()); | 33 CriticalSectionScoped cs(crit_sect_.get()); |
| 34 memcpy(&last_payload_, &payload, sizeof(last_payload_)); | 34 memcpy(&last_payload_, &payload, sizeof(last_payload_)); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void RTPReceiverStrategy::CheckPayloadChanged(int8_t payload_type, | 37 void RTPReceiverStrategy::CheckPayloadChanged(int8_t payload_type, |
| 38 PayloadUnion* specific_payload, | 38 PayloadUnion* specific_payload, |
| 39 bool* should_reset_statistics, | |
| 40 bool* should_discard_changes) { | 39 bool* should_discard_changes) { |
| 41 // Default: Keep changes and don't reset statistics. | 40 // Default: Keep changes. |
| 42 *should_discard_changes = false; | 41 *should_discard_changes = false; |
| 43 *should_reset_statistics = false; | |
| 44 } | 42 } |
| 45 | 43 |
| 46 int RTPReceiverStrategy::Energy(uint8_t array_of_energy[kRtpCsrcSize]) const { | 44 int RTPReceiverStrategy::Energy(uint8_t array_of_energy[kRtpCsrcSize]) const { |
| 47 return -1; | 45 return -1; |
| 48 } | 46 } |
| 49 | 47 |
| 50 } // namespace webrtc | 48 } // namespace webrtc |
| OLD | NEW |