| Index: webrtc/pc/channelmanager.cc
|
| diff --git a/webrtc/pc/channelmanager.cc b/webrtc/pc/channelmanager.cc
|
| index f59a3df9c72f7059e0c1a66aed639a66e2dbe518..bfffc705809109d032ea9488d4a569e41dd4975d 100644
|
| --- a/webrtc/pc/channelmanager.cc
|
| +++ b/webrtc/pc/channelmanager.cc
|
| @@ -206,17 +206,19 @@ VoiceChannel* ChannelManager::CreateVoiceChannel(
|
| webrtc::MediaControllerInterface* media_controller,
|
| TransportController* transport_controller,
|
| const std::string& content_name,
|
| + const std::string& transport_name,
|
| bool rtcp,
|
| const AudioOptions& options) {
|
| return worker_thread_->Invoke<VoiceChannel*>(
|
| Bind(&ChannelManager::CreateVoiceChannel_w, this, media_controller,
|
| - transport_controller, content_name, rtcp, options));
|
| + transport_controller, content_name, transport_name, rtcp, options));
|
| }
|
|
|
| VoiceChannel* ChannelManager::CreateVoiceChannel_w(
|
| webrtc::MediaControllerInterface* media_controller,
|
| TransportController* transport_controller,
|
| const std::string& content_name,
|
| + const std::string& transport_name,
|
| bool rtcp,
|
| const AudioOptions& options) {
|
| ASSERT(initialized_);
|
| @@ -230,7 +232,7 @@ VoiceChannel* ChannelManager::CreateVoiceChannel_w(
|
| VoiceChannel* voice_channel =
|
| new VoiceChannel(worker_thread_, media_engine_.get(), media_channel,
|
| transport_controller, content_name, rtcp);
|
| - if (!voice_channel->Init()) {
|
| + if (!voice_channel->Init(transport_name)) {
|
| delete voice_channel;
|
| return nullptr;
|
| }
|
| @@ -264,17 +266,19 @@ VideoChannel* ChannelManager::CreateVideoChannel(
|
| webrtc::MediaControllerInterface* media_controller,
|
| TransportController* transport_controller,
|
| const std::string& content_name,
|
| + const std::string& transport_name,
|
| bool rtcp,
|
| const VideoOptions& options) {
|
| return worker_thread_->Invoke<VideoChannel*>(
|
| Bind(&ChannelManager::CreateVideoChannel_w, this, media_controller,
|
| - transport_controller, content_name, rtcp, options));
|
| + transport_controller, content_name, transport_name, rtcp, options));
|
| }
|
|
|
| VideoChannel* ChannelManager::CreateVideoChannel_w(
|
| webrtc::MediaControllerInterface* media_controller,
|
| TransportController* transport_controller,
|
| const std::string& content_name,
|
| + const std::string& transport_name,
|
| bool rtcp,
|
| const VideoOptions& options) {
|
| ASSERT(initialized_);
|
| @@ -288,7 +292,7 @@ VideoChannel* ChannelManager::CreateVideoChannel_w(
|
|
|
| VideoChannel* video_channel = new VideoChannel(
|
| worker_thread_, media_channel, transport_controller, content_name, rtcp);
|
| - if (!video_channel->Init()) {
|
| + if (!video_channel->Init(transport_name)) {
|
| delete video_channel;
|
| return NULL;
|
| }
|
| @@ -322,16 +326,18 @@ void ChannelManager::DestroyVideoChannel_w(VideoChannel* video_channel) {
|
| DataChannel* ChannelManager::CreateDataChannel(
|
| TransportController* transport_controller,
|
| const std::string& content_name,
|
| + const std::string& transport_name,
|
| bool rtcp,
|
| DataChannelType channel_type) {
|
| return worker_thread_->Invoke<DataChannel*>(
|
| Bind(&ChannelManager::CreateDataChannel_w, this, transport_controller,
|
| - content_name, rtcp, channel_type));
|
| + content_name, transport_name, rtcp, channel_type));
|
| }
|
|
|
| DataChannel* ChannelManager::CreateDataChannel_w(
|
| TransportController* transport_controller,
|
| const std::string& content_name,
|
| + const std::string& transport_name,
|
| bool rtcp,
|
| DataChannelType data_channel_type) {
|
| // This is ok to alloc from a thread other than the worker thread.
|
| @@ -346,7 +352,7 @@ DataChannel* ChannelManager::CreateDataChannel_w(
|
|
|
| DataChannel* data_channel = new DataChannel(
|
| worker_thread_, media_channel, transport_controller, content_name, rtcp);
|
| - if (!data_channel->Init()) {
|
| + if (!data_channel->Init(transport_name)) {
|
| LOG(LS_WARNING) << "Failed to init data channel.";
|
| delete data_channel;
|
| return NULL;
|
|
|