Commit 2fb1fe2e authored by Santiago Carot-Nemesio's avatar Santiago Carot-Nemesio Committed by Sebastian Dröge
Browse files

rtpsession: Fix collection of statistics

Stats should be collected on the media rtp source not in the
sender one.

https://bugzilla.gnome.org/show_bug.cgi?id=749669
parent 27c91bc8
...@@ -2390,8 +2390,6 @@ rtp_session_process_pli (RTPSession * sess, guint32 sender_ssrc, ...@@ -2390,8 +2390,6 @@ rtp_session_process_pli (RTPSession * sess, guint32 sender_ssrc,
return; return;
rtp_session_request_local_key_unit (sess, src, FALSE, current_time); rtp_session_request_local_key_unit (sess, src, FALSE, current_time);
src->stats.recv_pli_count++;
} }
static void static void
...@@ -2448,7 +2446,6 @@ rtp_session_process_fir (RTPSession * sess, guint32 sender_ssrc, ...@@ -2448,7 +2446,6 @@ rtp_session_process_fir (RTPSession * sess, guint32 sender_ssrc,
return; return;
rtp_session_request_local_key_unit (sess, src, TRUE, current_time); rtp_session_request_local_key_unit (sess, src, TRUE, current_time);
src->stats.recv_fir_count++;
} }
static void static void
...@@ -2531,10 +2528,12 @@ rtp_session_process_feedback (RTPSession * sess, GstRTCPPacket * packet, ...@@ -2531,10 +2528,12 @@ 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++;
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++;
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;
......
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