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:
parent
a092cbf9b7
commit
294e5b0b82
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user