mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
rtp: Add Full Intra Request (FIR) packets to statistics
https://bugzilla.gnome.org/show_bug.cgi?id=745587
This commit is contained in:
parent
22791413f9
commit
e05378ec16
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue