Reset ssrc when calling SetSendCodec.

BUG=1398
TEST=Tested locally.

Review URL: https://webrtc-codereview.appspot.com/1107004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3511 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2013-02-14 11:25:26 +00:00
parent a092cbf9b7
commit 294e5b0b82

View File

@ -403,6 +403,9 @@ void ViEChannelManager::UpdateSsrcs(int channel_id,
EncoderStateFeedback* encoder_state_feedback =
channel_group->GetEncoderStateFeedback();
// Remove a possible previous setting for this encoder before adding the new
// setting.
encoder_state_feedback->RemoveEncoder(encoder);
for (std::list<unsigned int>::const_iterator it = ssrcs.begin();
it != ssrcs.end(); ++it) {
encoder_state_feedback->AddEncoder(*it, encoder);