diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 0203362952..48c5fa0c68 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -2449,6 +2449,7 @@ rtp_session_process_fir (RTPSession * sess, guint32 sender_ssrc, return; rtp_session_request_local_key_unit (sess, src, TRUE, current_time); + src->stats.recv_fir_count++; } static void @@ -3143,6 +3144,7 @@ session_add_fir (const gchar * key, RTPSource * source, ReportData * data) fci_data[1] = fci_data[2] = fci_data[3] = 0; source->send_fir = FALSE; + source->stats.sent_fir_count++; } static void diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index 7c4220580f..6b0cec5d9c 100644 --- a/gst/rtpmanager/rtpsource.c +++ b/gst/rtpmanager/rtpsource.c @@ -240,6 +240,7 @@ rtp_source_reset (RTPSource * src) g_array_set_size (src->nacks, 0); src->stats.sent_pli_count = 0; + src->stats.sent_fir_count = 0; } static void @@ -368,7 +369,9 @@ rtp_source_create_stats (RTPSource * src) (gint) rtp_stats_get_packets_lost (&src->stats), "jitter", G_TYPE_UINT, (guint) (src->stats.jitter >> 4), "sent-pli-count", G_TYPE_UINT, src->stats.sent_pli_count, - "recv-pli-count", G_TYPE_UINT, src->stats.recv_pli_count, NULL); + "recv-pli-count", G_TYPE_UINT, src->stats.recv_pli_count, + "sent-fir-count", G_TYPE_UINT, src->stats.sent_fir_count, + "recv-fir-count", G_TYPE_UINT, src->stats.recv_fir_count, NULL); /* get the last SR. */ have_sr = rtp_source_get_last_sr (src, &time, &ntptime, &rtptime, @@ -947,6 +950,7 @@ init_seq (RTPSource * src, guint16 seq) src->stats.prev_received = 0; src->stats.prev_expected = 0; src->stats.recv_pli_count = 0; + src->stats.recv_fir_count = 0; GST_DEBUG ("base_seq %d", seq); } diff --git a/gst/rtpmanager/rtpstats.h b/gst/rtpmanager/rtpstats.h index f2062e9344..c54ea0b73a 100644 --- a/gst/rtpmanager/rtpstats.h +++ b/gst/rtpmanager/rtpstats.h @@ -137,6 +137,8 @@ typedef struct { guint sent_pli_count; guint recv_pli_count; + guint sent_fir_count; + guint recv_fir_count; /* when we received stuff */ GstClockTime prev_rtptime;