Commit 565cd496 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

rtpsession: Don't crash if we receive FIR/PLI from a source we don't know

parent 2fb1fe2e
......@@ -2528,12 +2528,14 @@ rtp_session_process_feedback (RTPSession * sess, GstRTCPPacket * packet,
case GST_RTCP_TYPE_PSFB:
switch (fbtype) {
case GST_RTCP_PSFB_TYPE_PLI:
src->stats.recv_pli_count++;
if (src)
src->stats.recv_pli_count++;
rtp_session_process_pli (sess, sender_ssrc, media_ssrc,
current_time);
break;
case GST_RTCP_PSFB_TYPE_FIR:
src->stats.recv_fir_count++;
if (src)
src->stats.recv_fir_count++;
rtp_session_process_fir (sess, sender_ssrc, fci_data, fci_length,
current_time);
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment