| 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 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 : transport_adapter_(config.send_transport), | 111 : transport_adapter_(config.send_transport), |
| 112 encoded_frame_proxy_(config.post_encode_callback), | 112 encoded_frame_proxy_(config.post_encode_callback), |
| 113 config_(config), | 113 config_(config), |
| 114 suspended_ssrcs_(suspended_ssrcs), | 114 suspended_ssrcs_(suspended_ssrcs), |
| 115 module_process_thread_(module_process_thread), | 115 module_process_thread_(module_process_thread), |
| 116 channel_group_(channel_group), | 116 channel_group_(channel_group), |
| 117 channel_id_(channel_id), | 117 channel_id_(channel_id), |
| 118 use_config_bitrate_(true), | 118 use_config_bitrate_(true), |
| 119 stats_proxy_(Clock::GetRealTimeClock(), config) { | 119 stats_proxy_(Clock::GetRealTimeClock(), config) { |
| 120 RTC_DCHECK(!config_.rtp.ssrcs.empty()); | 120 RTC_DCHECK(!config_.rtp.ssrcs.empty()); |
| 121 RTC_CHECK(channel_group->CreateSendChannel( | 121 RTC_CHECK(channel_group->CreateSendChannel(channel_id_, &transport_adapter_, |
| 122 channel_id_, 0, &transport_adapter_, num_cpu_cores, config_.rtp.ssrcs)); | 122 num_cpu_cores, config_.rtp.ssrcs)); |
| 123 vie_channel_ = channel_group_->GetChannel(channel_id_); | 123 vie_channel_ = channel_group_->GetChannel(channel_id_); |
| 124 vie_encoder_ = channel_group_->GetEncoder(channel_id_); | 124 vie_encoder_ = channel_group_->GetEncoder(channel_id_); |
| 125 | 125 |
| 126 for (size_t i = 0; i < config_.rtp.extensions.size(); ++i) { | 126 for (size_t i = 0; i < config_.rtp.extensions.size(); ++i) { |
| 127 const std::string& extension = config_.rtp.extensions[i].name; | 127 const std::string& extension = config_.rtp.extensions[i].name; |
| 128 int id = config_.rtp.extensions[i].id; | 128 int id = config_.rtp.extensions[i].id; |
| 129 // One-byte-extension local identifiers are in the range 1-14 inclusive. | 129 // One-byte-extension local identifiers are in the range 1-14 inclusive. |
| 130 RTC_DCHECK_GE(id, 1); | 130 RTC_DCHECK_GE(id, 1); |
| 131 RTC_DCHECK_LE(id, 14); | 131 RTC_DCHECK_LE(id, 14); |
| 132 if (extension == RtpExtension::kTOffset) { | 132 if (extension == RtpExtension::kTOffset) { |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 vie_channel_->IsSendingFecEnabled()); | 510 vie_channel_->IsSendingFecEnabled()); |
| 511 | 511 |
| 512 // Restart the media flow | 512 // Restart the media flow |
| 513 vie_encoder_->Restart(); | 513 vie_encoder_->Restart(); |
| 514 | 514 |
| 515 return true; | 515 return true; |
| 516 } | 516 } |
| 517 | 517 |
| 518 } // namespace internal | 518 } // namespace internal |
| 519 } // namespace webrtc | 519 } // namespace webrtc |
| OLD | NEW |