Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.cc

Issue 1213603002: Remove ResetStatistics from RTP feedback. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: comment + rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698