RtpSenderEgress: make potential crash more explicit.

Fixed: chromium:1472676
Change-Id: I1701b65e05c13c95392da90e6642e4eb6fe133ec
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/315920
Commit-Queue: Markus Handell <handellm@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40548}
This commit is contained in:
Markus Handell 2023-08-14 14:32:37 +02:00 committed by WebRTC LUCI CQ
parent 4c17e2dbce
commit ed2ce81f27

View File

@ -242,7 +242,7 @@ void RtpSenderEgress::CompleteSendPacket(const Packet& compound_packet,
bool last_in_batch) {
RTC_DCHECK_RUN_ON(worker_queue_);
auto& [packet, pacing_info, now] = compound_packet;
RTC_CHECK(packet);
const bool is_media = packet->packet_type() == RtpPacketMediaType::kAudio ||
packet->packet_type() == RtpPacketMediaType::kVideo;