Index: talk/app/webrtc/webrtcsession.cc |
diff --git a/talk/app/webrtc/webrtcsession.cc b/talk/app/webrtc/webrtcsession.cc |
index ecc7c605eaaa0a18546c3d2cf651bfe085c22904..420477dbedcb323a5bc0c1dbcd951a8f45ea0c0c 100644 |
--- a/talk/app/webrtc/webrtcsession.cc |
+++ b/talk/app/webrtc/webrtcsession.cc |
@@ -1739,6 +1739,7 @@ |
cricket::GetFirstVideoContent(desc); |
if ((!video_info || video_info->rejected) && video_channel_) { |
SignalVideoChannelDestroyed(); |
+ const std::string content_name = video_channel_->content_name(); |
channel_manager_->DestroyVideoChannel(video_channel_.release()); |
} |
@@ -1746,6 +1747,7 @@ |
cricket::GetFirstAudioContent(desc); |
if ((!voice_info || voice_info->rejected) && voice_channel_) { |
SignalVoiceChannelDestroyed(); |
+ const std::string content_name = voice_channel_->content_name(); |
channel_manager_->DestroyVoiceChannel(voice_channel_.release()); |
} |
@@ -1753,6 +1755,7 @@ |
cricket::GetFirstDataContent(desc); |
if ((!data_info || data_info->rejected) && data_channel_) { |
SignalDataChannelDestroyed(); |
+ const std::string content_name = data_channel_->content_name(); |
channel_manager_->DestroyDataChannel(data_channel_.release()); |
} |
} |