diff --git a/talk/media/webrtc/webrtcvideoengine.cc b/talk/media/webrtc/webrtcvideoengine.cc index 83b11774a..61801ffb1 100644 --- a/talk/media/webrtc/webrtcvideoengine.cc +++ b/talk/media/webrtc/webrtcvideoengine.cc @@ -2018,25 +2018,6 @@ bool WebRtcVideoMediaChannel::AddRecvStream(const StreamParams& sp) { return false; } - // Get the default renderer. - VideoRenderer* default_renderer = NULL; - if (InConferenceMode()) { - // The recv_channels_ size start out being 1, so if it is two here - // this is the first receive channel created (default_channel_id_ - // is not used for receiving in a conference call). This means - // that the renderer stored inside default_channel_id_ should be - // used for the just created channel. - if (recv_channels_.size() == 2 && GetDefaultRecvChannel()) { - GetDefaultRenderer(&default_renderer); - } - } - - // The first recv stream reuses the default renderer (if a default renderer - // has been set). - if (default_renderer) { - SetRenderer(sp.first_ssrc(), default_renderer); - } - LOG(LS_INFO) << "New video stream " << sp.first_ssrc() << " registered to VideoEngine channel #" << channel_id << " and connected to channel #" @@ -3139,10 +3120,6 @@ bool WebRtcVideoMediaChannel::GetRenderer(uint32 ssrc, return true; } -bool WebRtcVideoMediaChannel::GetDefaultRenderer(VideoRenderer** renderer) { - return GetRenderer(kDefaultChannelSsrcKey, renderer); -} - bool WebRtcVideoMediaChannel::GetVideoAdapter( uint32 ssrc, CoordinatedVideoAdapter** video_adapter) { WebRtcVideoChannelSendInfo* send_channel = GetSendChannelBySsrc(ssrc); diff --git a/talk/media/webrtc/webrtcvideoengine.h b/talk/media/webrtc/webrtcvideoengine.h index c31f54725..50b2776c7 100644 --- a/talk/media/webrtc/webrtcvideoengine.h +++ b/talk/media/webrtc/webrtcvideoengine.h @@ -387,8 +387,6 @@ class WebRtcVideoMediaChannel : public rtc::MessageHandler, bool IsDefaultChannelId(int channel_id) const { return channel_id == default_channel_id_; } - bool GetDefaultRenderer(VideoRenderer** renderer); - bool DeleteSendChannel(uint32 ssrc_key); WebRtcVideoChannelRecvInfo* GetDefaultRecvChannel();