Check associated payload type when negotiate RTX codecs.
At the moment, only payload name is checked when match two RTX codecs. This will cause wrong behavior of codec negotiation if multiple RTX codecs are added. BUG= R=pthatcher@webrtc.org Review URL: https://webrtc-codereview.appspot.com/34189004 Cr-Commit-Position: refs/heads/master@{#8727} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8727 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -66,20 +66,6 @@ DataMediaChannel* RtpDataEngine::CreateChannel(
|
||||
return new RtpDataMediaChannel(timing_.get());
|
||||
}
|
||||
|
||||
// TODO(pthatcher): Should we move these find/get functions somewhere
|
||||
// common?
|
||||
bool FindCodecById(const std::vector<DataCodec>& codecs,
|
||||
int id, DataCodec* codec_out) {
|
||||
std::vector<DataCodec>::const_iterator iter;
|
||||
for (iter = codecs.begin(); iter != codecs.end(); ++iter) {
|
||||
if (iter->id == id) {
|
||||
*codec_out = *iter;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool FindCodecByName(const std::vector<DataCodec>& codecs,
|
||||
const std::string& name, DataCodec* codec_out) {
|
||||
std::vector<DataCodec>::const_iterator iter;
|
||||
|
||||
Reference in New Issue
Block a user