| 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/rtcp_demuxer.h" | 11 #include "webrtc/call/rtcp_demuxer.h" |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" | |
| 14 #include "webrtc/call/rtcp_packet_sink_interface.h" | 13 #include "webrtc/call/rtcp_packet_sink_interface.h" |
| 15 #include "webrtc/call/rtp_rtcp_demuxer_helper.h" | 14 #include "webrtc/call/rtp_rtcp_demuxer_helper.h" |
| 16 #include "webrtc/common_types.h" | 15 #include "webrtc/common_types.h" |
| 16 #include "webrtc/rtc_base/checks.h" |
| 17 | 17 |
| 18 namespace webrtc { | 18 namespace webrtc { |
| 19 | 19 |
| 20 RtcpDemuxer::RtcpDemuxer() = default; | 20 RtcpDemuxer::RtcpDemuxer() = default; |
| 21 | 21 |
| 22 RtcpDemuxer::~RtcpDemuxer() { | 22 RtcpDemuxer::~RtcpDemuxer() { |
| 23 RTC_DCHECK(ssrc_sinks_.empty()); | 23 RTC_DCHECK(ssrc_sinks_.empty()); |
| 24 RTC_DCHECK(rsid_sinks_.empty()); | 24 RTC_DCHECK(rsid_sinks_.empty()); |
| 25 RTC_DCHECK(broadcast_sinks_.empty()); | 25 RTC_DCHECK(broadcast_sinks_.empty()); |
| 26 } | 26 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 AddSink(ssrc, sink); | 91 AddSink(ssrc, sink); |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 | 94 |
| 95 // RSIDs are uniquely associated with SSRCs; no need to keep in memory | 95 // RSIDs are uniquely associated with SSRCs; no need to keep in memory |
| 96 // the RSID-to-sink association of resolved RSIDs. | 96 // the RSID-to-sink association of resolved RSIDs. |
| 97 rsid_sinks_.erase(it_range.first, it_range.second); | 97 rsid_sinks_.erase(it_range.first, it_range.second); |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace webrtc | 100 } // namespace webrtc |
| OLD | NEW |