OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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/call/rtp_demuxer.h" | 11 #include "webrtc/call/rtp_demuxer.h" |
12 | 12 |
13 #include "webrtc/base/checks.h" | |
14 #include "webrtc/base/logging.h" | |
15 #include "webrtc/call/rsid_resolution_observer.h" | 13 #include "webrtc/call/rsid_resolution_observer.h" |
16 #include "webrtc/call/rtp_packet_sink_interface.h" | 14 #include "webrtc/call/rtp_packet_sink_interface.h" |
17 #include "webrtc/call/rtp_rtcp_demuxer_helper.h" | 15 #include "webrtc/call/rtp_rtcp_demuxer_helper.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" | 16 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" |
19 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
| 18 #include "webrtc/rtc_base/checks.h" |
| 19 #include "webrtc/rtc_base/logging.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 RtpDemuxer::RtpDemuxer() = default; | 23 RtpDemuxer::RtpDemuxer() = default; |
24 | 24 |
25 RtpDemuxer::~RtpDemuxer() { | 25 RtpDemuxer::~RtpDemuxer() { |
26 RTC_DCHECK(ssrc_sinks_.empty()); | 26 RTC_DCHECK(ssrc_sinks_.empty()); |
27 RTC_DCHECK(rsid_sinks_.empty()); | 27 RTC_DCHECK(rsid_sinks_.empty()); |
28 } | 28 } |
29 | 29 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 | 109 |
110 void RtpDemuxer::NotifyObserversOfRsidResolution(const std::string& rsid, | 110 void RtpDemuxer::NotifyObserversOfRsidResolution(const std::string& rsid, |
111 uint32_t ssrc) { | 111 uint32_t ssrc) { |
112 for (auto* observer : rsid_resolution_observers_) { | 112 for (auto* observer : rsid_resolution_observers_) { |
113 observer->OnRsidResolved(rsid, ssrc); | 113 observer->OnRsidResolved(rsid, ssrc); |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 } // namespace webrtc | 117 } // namespace webrtc |
OLD | NEW |