use constants for CN and telephone-event codec names
BUG=None Change-Id: I7aa4a7b6dca3783bd0bc0d8d3e0ef33c9b18ee41 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176325 Reviewed-by: Per Åhgren <peah@webrtc.org> Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com> Cr-Commit-Position: refs/heads/master@{#31387}
This commit is contained in:
committed by
Commit Bot
parent
b164e70450
commit
461e38761d
@ -1541,7 +1541,7 @@ bool WebRtcVoiceMediaChannel::SetRecvCodecs(
|
||||
<< old_codec.id << ")";
|
||||
}
|
||||
auto format = AudioCodecToSdpAudioFormat(codec);
|
||||
if (!IsCodec(codec, "cn") && !IsCodec(codec, "telephone-event") &&
|
||||
if (!IsCodec(codec, kCnCodecName) && !IsCodec(codec, kDtmfCodecName) &&
|
||||
!engine()->decoder_factory_->IsSupportedDecoder(format)) {
|
||||
RTC_LOG(LS_ERROR) << "Unsupported codec: " << rtc::ToString(format);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user