| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <string.h> | 11 #include <string.h> |
| 12 #include <algorithm> | 12 #include <algorithm> |
| 13 #include <map> | 13 #include <map> |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <set> |
| 15 #include <utility> | 16 #include <utility> |
| 16 #include <vector> | 17 #include <vector> |
| 17 | 18 |
| 18 #include "webrtc/audio/audio_receive_stream.h" | 19 #include "webrtc/audio/audio_receive_stream.h" |
| 19 #include "webrtc/audio/audio_send_stream.h" | 20 #include "webrtc/audio/audio_send_stream.h" |
| 20 #include "webrtc/audio/audio_state.h" | 21 #include "webrtc/audio/audio_state.h" |
| 21 #include "webrtc/audio/scoped_voe_interface.h" | 22 #include "webrtc/audio/scoped_voe_interface.h" |
| 22 #include "webrtc/base/basictypes.h" | 23 #include "webrtc/base/basictypes.h" |
| 23 #include "webrtc/base/checks.h" | 24 #include "webrtc/base/checks.h" |
| 24 #include "webrtc/base/constructormagic.h" | 25 #include "webrtc/base/constructormagic.h" |
| 25 #include "webrtc/base/logging.h" | 26 #include "webrtc/base/logging.h" |
| 26 #include "webrtc/base/task_queue.h" | 27 #include "webrtc/base/task_queue.h" |
| 27 #include "webrtc/base/thread_annotations.h" | 28 #include "webrtc/base/thread_annotations.h" |
| 28 #include "webrtc/base/thread_checker.h" | 29 #include "webrtc/base/thread_checker.h" |
| 29 #include "webrtc/base/trace_event.h" | 30 #include "webrtc/base/trace_event.h" |
| 30 #include "webrtc/call.h" | |
| 31 #include "webrtc/call/bitrate_allocator.h" | 31 #include "webrtc/call/bitrate_allocator.h" |
| 32 #include "webrtc/call/call.h" |
| 32 #include "webrtc/call/flexfec_receive_stream.h" | 33 #include "webrtc/call/flexfec_receive_stream.h" |
| 33 #include "webrtc/config.h" | 34 #include "webrtc/config.h" |
| 34 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 35 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
| 35 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" | 36 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" |
| 36 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" | 37 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" |
| 37 #include "webrtc/modules/pacing/paced_sender.h" | 38 #include "webrtc/modules/pacing/paced_sender.h" |
| 38 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" | 39 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" |
| 39 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 40 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
| 40 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 41 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
| 41 #include "webrtc/modules/utility/include/process_thread.h" | 42 #include "webrtc/modules/utility/include/process_thread.h" |
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1123 uint32_t ssrc = ByteReader<uint32_t>::ReadBigEndian(&packet[8]); | 1124 uint32_t ssrc = ByteReader<uint32_t>::ReadBigEndian(&packet[8]); |
| 1124 ReadLockScoped read_lock(*receive_crit_); | 1125 ReadLockScoped read_lock(*receive_crit_); |
| 1125 auto it = video_receive_ssrcs_.find(ssrc); | 1126 auto it = video_receive_ssrcs_.find(ssrc); |
| 1126 if (it == video_receive_ssrcs_.end()) | 1127 if (it == video_receive_ssrcs_.end()) |
| 1127 return false; | 1128 return false; |
| 1128 return it->second->OnRecoveredPacket(packet, length); | 1129 return it->second->OnRecoveredPacket(packet, length); |
| 1129 } | 1130 } |
| 1130 | 1131 |
| 1131 } // namespace internal | 1132 } // namespace internal |
| 1132 } // namespace webrtc | 1133 } // namespace webrtc |
| OLD | NEW |