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 |
11 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
12 | 12 |
13 #include <string.h> | 13 #include <string.h> |
14 | 14 |
15 #include "webrtc/base/logging.h" | 15 #include "webrtc/base/logging.h" |
16 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" | 16 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" |
17 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 17 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" | 18 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 RtpData* NullObjectRtpData() { | |
23 static NullRtpData null_rtp_data; | |
24 return &null_rtp_data; | |
25 } | |
26 | |
27 RtpFeedback* NullObjectRtpFeedback() { | 22 RtpFeedback* NullObjectRtpFeedback() { |
28 static NullRtpFeedback null_rtp_feedback; | 23 static NullRtpFeedback null_rtp_feedback; |
29 return &null_rtp_feedback; | 24 return &null_rtp_feedback; |
30 } | 25 } |
31 | 26 |
32 ReceiveStatistics* NullObjectReceiveStatistics() { | 27 ReceiveStatistics* NullObjectReceiveStatistics() { |
33 static NullReceiveStatistics null_receive_statistics; | 28 static NullReceiveStatistics null_receive_statistics; |
34 return &null_receive_statistics; | 29 return &null_receive_statistics; |
35 } | 30 } |
36 | 31 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 return; | 479 return; |
485 } | 480 } |
486 } | 481 } |
487 } | 482 } |
488 ptr += (len + 1); | 483 ptr += (len + 1); |
489 } | 484 } |
490 } | 485 } |
491 | 486 |
492 } // namespace RtpUtility | 487 } // namespace RtpUtility |
493 } // namespace webrtc | 488 } // namespace webrtc |
OLD | NEW |