Don't add empty extension list in event log parser.
This allows the fall back list to be used instead. Bug: webrtc:9718 Change-Id: Ie17a4b740fef60385c6019ea167c73eff07e8ae2 Reviewed-on: https://webrtc-review.googlesource.com/c/111246 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25676}
This commit is contained in:
parent
1eebec9808
commit
8c1e73b024
@ -1014,6 +1014,7 @@ void ParsedRtcEventLogNew::StoreParsedLegacyEvent(const rtclog::Event& event) {
|
||||
case rtclog::Event::VIDEO_RECEIVER_CONFIG_EVENT: {
|
||||
rtclog::StreamConfig config = GetVideoReceiveConfig(event);
|
||||
video_recv_configs_.emplace_back(GetTimestamp(event), config);
|
||||
if (!config.rtp_extensions.empty()) {
|
||||
incoming_rtp_extensions_maps_[config.remote_ssrc] =
|
||||
RtpHeaderExtensionMap(config.rtp_extensions);
|
||||
// TODO(terelius): I don't understand the reason for configuring header
|
||||
@ -1021,6 +1022,7 @@ void ParsedRtcEventLogNew::StoreParsedLegacyEvent(const rtclog::Event& event) {
|
||||
// now I want to preserve the previous functionality.
|
||||
incoming_rtp_extensions_maps_[config.local_ssrc] =
|
||||
RtpHeaderExtensionMap(config.rtp_extensions);
|
||||
}
|
||||
incoming_video_ssrcs_.insert(config.remote_ssrc);
|
||||
incoming_video_ssrcs_.insert(config.rtx_ssrc);
|
||||
incoming_rtx_ssrcs_.insert(config.rtx_ssrc);
|
||||
@ -1030,10 +1032,12 @@ void ParsedRtcEventLogNew::StoreParsedLegacyEvent(const rtclog::Event& event) {
|
||||
std::vector<rtclog::StreamConfig> configs = GetVideoSendConfig(event);
|
||||
video_send_configs_.emplace_back(GetTimestamp(event), configs);
|
||||
for (const auto& config : configs) {
|
||||
if (!config.rtp_extensions.empty()) {
|
||||
outgoing_rtp_extensions_maps_[config.local_ssrc] =
|
||||
RtpHeaderExtensionMap(config.rtp_extensions);
|
||||
outgoing_rtp_extensions_maps_[config.rtx_ssrc] =
|
||||
RtpHeaderExtensionMap(config.rtp_extensions);
|
||||
}
|
||||
outgoing_video_ssrcs_.insert(config.local_ssrc);
|
||||
outgoing_video_ssrcs_.insert(config.rtx_ssrc);
|
||||
outgoing_rtx_ssrcs_.insert(config.rtx_ssrc);
|
||||
@ -1043,18 +1047,22 @@ void ParsedRtcEventLogNew::StoreParsedLegacyEvent(const rtclog::Event& event) {
|
||||
case rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT: {
|
||||
rtclog::StreamConfig config = GetAudioReceiveConfig(event);
|
||||
audio_recv_configs_.emplace_back(GetTimestamp(event), config);
|
||||
if (!config.rtp_extensions.empty()) {
|
||||
incoming_rtp_extensions_maps_[config.remote_ssrc] =
|
||||
RtpHeaderExtensionMap(config.rtp_extensions);
|
||||
incoming_rtp_extensions_maps_[config.local_ssrc] =
|
||||
RtpHeaderExtensionMap(config.rtp_extensions);
|
||||
}
|
||||
incoming_audio_ssrcs_.insert(config.remote_ssrc);
|
||||
break;
|
||||
}
|
||||
case rtclog::Event::AUDIO_SENDER_CONFIG_EVENT: {
|
||||
rtclog::StreamConfig config = GetAudioSendConfig(event);
|
||||
audio_send_configs_.emplace_back(GetTimestamp(event), config);
|
||||
if (!config.rtp_extensions.empty()) {
|
||||
outgoing_rtp_extensions_maps_[config.local_ssrc] =
|
||||
RtpHeaderExtensionMap(config.rtp_extensions);
|
||||
}
|
||||
outgoing_audio_ssrcs_.insert(config.local_ssrc);
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user