Allow parsing RTC event logs without a transaction ID.
Bug: webrtc:9972 Change-Id: I01d60671d249adbd55f25c8f49f205b18787cbf4 Reviewed-on: https://webrtc-review.googlesource.com/c/113304 Reviewed-by: Zach Stein <zstein@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25914}
This commit is contained in:
parent
518add35a8
commit
fafae11bfc
@ -2428,8 +2428,10 @@ void ParsedRtcEventLogNew::StoreIceCandidateEvent(
|
||||
ice_event.type = GetRuntimeIceCandidatePairEventType(proto.event_type());
|
||||
RTC_CHECK(proto.has_candidate_pair_id());
|
||||
ice_event.candidate_pair_id = proto.candidate_pair_id();
|
||||
RTC_CHECK(proto.has_transaction_id());
|
||||
ice_event.transaction_id = proto.transaction_id();
|
||||
// TODO(zstein): Make the transaction_id field required once all old versions
|
||||
// of the log (which don't have the field) are obsolete.
|
||||
if (proto.has_transaction_id())
|
||||
ice_event.transaction_id = proto.transaction_id();
|
||||
|
||||
ice_candidate_pair_events_.push_back(ice_event);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user