Index: webrtc/audio/audio_send_stream.cc |
diff --git a/webrtc/audio/audio_send_stream.cc b/webrtc/audio/audio_send_stream.cc |
index a96eaf83f83a2928226651630e24a1b596c36587..a352fb0df8d5877b3ba76dc204f8e44f3f453b04 100644 |
--- a/webrtc/audio/audio_send_stream.cc |
+++ b/webrtc/audio/audio_send_stream.cc |
@@ -171,6 +171,7 @@ webrtc::AudioSendStream::Stats AudioSendStream::GetStats() const { |
if (codec->GetSendCodec(config_.voe_channel_id, codec_inst) != -1) { |
RTC_DCHECK_NE(codec_inst.pltype, -1); |
stats.codec_name = codec_inst.plname; |
+ stats.codec_payload_type = rtc::Optional<int>(codec_inst.pltype); |
// Get data from the last remote RTCP report. |
for (const auto& block : channel_proxy_->GetRemoteRTCPReportBlocks()) { |