Fix for "RTP dynamic payload type 100 is reserved"
TBR=perkj BUG=227036 (in crbug.com) TEST=out\Debug\voe_auto_test.exe --automated --gtest_filter=Dtmf* where I manually modified the test and used 100 as new PT (which I first verified was already used by CN, 48000). BUG= Review URL: https://webrtc-codereview.appspot.com/1319010 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3859 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -3182,11 +3182,14 @@ Channel::SetSendTelephoneEventPayloadType(unsigned char type)
|
|||||||
memcpy(codec.plname, "telephone-event", 16);
|
memcpy(codec.plname, "telephone-event", 16);
|
||||||
if (_rtpRtcpModule->RegisterSendPayload(codec) != 0)
|
if (_rtpRtcpModule->RegisterSendPayload(codec) != 0)
|
||||||
{
|
{
|
||||||
_engineStatisticsPtr->SetLastError(
|
_rtpRtcpModule->DeRegisterSendPayload(codec.pltype);
|
||||||
VE_RTP_RTCP_MODULE_ERROR, kTraceError,
|
if (_rtpRtcpModule->RegisterSendPayload(codec) != 0) {
|
||||||
"SetSendTelephoneEventPayloadType() failed to register send"
|
_engineStatisticsPtr->SetLastError(
|
||||||
"payload type");
|
VE_RTP_RTCP_MODULE_ERROR, kTraceError,
|
||||||
return -1;
|
"SetSendTelephoneEventPayloadType() failed to register send"
|
||||||
|
"payload type");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_sendTelephoneEventPayloadType = type;
|
_sendTelephoneEventPayloadType = type;
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user