mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:28:32 +00:00
rtpsession: Don't crash if we receive FIR/PLI from a source we don't know
This commit is contained in:
parent
2fb1fe2ee3
commit
565cd49643
1 changed files with 4 additions and 2 deletions
|
@ -2528,12 +2528,14 @@ rtp_session_process_feedback (RTPSession * sess, GstRTCPPacket * packet,
|
||||||
case GST_RTCP_TYPE_PSFB:
|
case GST_RTCP_TYPE_PSFB:
|
||||||
switch (fbtype) {
|
switch (fbtype) {
|
||||||
case GST_RTCP_PSFB_TYPE_PLI:
|
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,
|
rtp_session_process_pli (sess, sender_ssrc, media_ssrc,
|
||||||
current_time);
|
current_time);
|
||||||
break;
|
break;
|
||||||
case GST_RTCP_PSFB_TYPE_FIR:
|
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,
|
rtp_session_process_fir (sess, sender_ssrc, fci_data, fci_length,
|
||||||
current_time);
|
current_time);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue