TT#14008 fix possible segfault when out of ports

closes #1243

Change-Id: Ib04c289ad78624139c0375423a7bc1ad402874e7
pull/1252/head
Richard Fuchs 5 years ago
parent 8d7e4c737a
commit 6cc1e99ee8

@ -1592,6 +1592,8 @@ static void media_packet_rtcp_demux(struct packet_handler_ctx *phc)
}
}
phc->out_srtp = phc->sink;
if (!phc->sink)
return;
if (phc->rtcp && phc->sink->rtcp_sibling)
phc->out_srtp = phc->sink->rtcp_sibling; // use RTCP SRTP context
@ -1603,6 +1605,8 @@ static void media_packet_rtp(struct packet_handler_ctx *phc)
{
phc->payload_type = -1;
if (G_UNLIKELY(!phc->mp.media))
return;
if (G_UNLIKELY(!proto_is_rtp(phc->mp.media->protocol)))
return;

Loading…
Cancel
Save