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

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

Issue 1535113002: [rtp_rtcp] time helper functions (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 12 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
11 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.h" 11 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 #include <math.h> 14 #include <math.h>
15 #include <stdlib.h> 15 #include <stdlib.h>
16 #include <string.h> 16 #include <string.h>
17 17
18 #include "webrtc/base/logging.h" 18 #include "webrtc/base/logging.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h" 19 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h"
20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
21 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h"
22 22
23 namespace webrtc { 23 namespace webrtc {
24 24
25 using RtpUtility::GetCurrentRTP;
26 using RtpUtility::Payload; 25 using RtpUtility::Payload;
27 using RtpUtility::StringCompare; 26 using RtpUtility::StringCompare;
28 27
29 RtpReceiver* RtpReceiver::CreateVideoReceiver( 28 RtpReceiver* RtpReceiver::CreateVideoReceiver(
30 Clock* clock, 29 Clock* clock,
31 RtpData* incoming_payload_callback, 30 RtpData* incoming_payload_callback,
32 RtpFeedback* incoming_messages_callback, 31 RtpFeedback* incoming_messages_callback,
33 RTPPayloadRegistry* rtp_payload_registry) { 32 RTPPayloadRegistry* rtp_payload_registry) {
34 if (!incoming_payload_callback) 33 if (!incoming_payload_callback)
35 incoming_payload_callback = NullObjectRtpData(); 34 incoming_payload_callback = NullObjectRtpData();
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 // implementations might have CSRC 0 as a valid value. 479 // implementations might have CSRC 0 as a valid value.
481 if (num_csrcs_diff > 0) { 480 if (num_csrcs_diff > 0) {
482 cb_rtp_feedback_->OnIncomingCSRCChanged(0, true); 481 cb_rtp_feedback_->OnIncomingCSRCChanged(0, true);
483 } else if (num_csrcs_diff < 0) { 482 } else if (num_csrcs_diff < 0) {
484 cb_rtp_feedback_->OnIncomingCSRCChanged(0, false); 483 cb_rtp_feedback_->OnIncomingCSRCChanged(0, false);
485 } 484 }
486 } 485 }
487 } 486 }
488 487
489 } // namespace webrtc 488 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698