rtpjitterbuffer: Fix stats property field names and documentation

This commit is contained in:
George Kiagiadakis 2013-11-15 13:48:07 +02:00
parent acf74435e3
commit 387e3b918a
2 changed files with 9 additions and 9 deletions

View file

@ -564,12 +564,12 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass)
* Various jitterbuffer statistics. This property returns a GstStructure
* with name application/x-rtp-jitterbuffer-stats with the following fields:
*
* "count" G_TYPE_UINT64 The number of retransmissions requested
* "success-count" G_TYPE_UINT64 The number of successful retransmissions
* "rtx-per-packet" G_TYPE_DOUBLE Average number of RTX per packet
* "rtx-rtt" G_TYPE_UINT64 Average round trip time per RTX
* "rtx-count" G_TYPE_UINT64 The number of retransmissions requested
* "rtx-success-count" G_TYPE_UINT64 The number of successful retransmissions
* "rtx-per-packet" G_TYPE_DOUBLE Average number of RTX per packet
* "rtx-rtt" G_TYPE_UINT64 Average round trip time per RTX
*
* Since: 1.2.1
* Since: 1.3.1
*/
g_object_class_install_property (gobject_class, PROP_STATS,
g_param_spec_boxed ("stats", "Statistics",
@ -3245,8 +3245,8 @@ gst_rtp_jitter_buffer_create_stats (GstRtpJitterBuffer * jbuf)
JBUF_LOCK (jbuf->priv);
s = gst_structure_new ("application/x-rtp-jitterbuffer-stats",
"count", G_TYPE_UINT64, jbuf->priv->num_rtx_requests,
"success-count", G_TYPE_UINT64, jbuf->priv->num_rtx_success,
"rtx-count", G_TYPE_UINT64, jbuf->priv->num_rtx_requests,
"rtx-success-count", G_TYPE_UINT64, jbuf->priv->num_rtx_success,
"rtx-per-packet", G_TYPE_DOUBLE, jbuf->priv->avg_rtx_num,
"rtx-rtt", G_TYPE_UINT64, jbuf->priv->avg_rtx_rtt, NULL);
JBUF_UNLOCK (jbuf->priv);

View file

@ -1115,10 +1115,10 @@ GST_START_TEST (test_rtx_two_missing)
g_object_get (data.jitter_buffer, "stats", &rtx_stats, NULL);
rtx_stat = gst_structure_get_value (rtx_stats, "count");
rtx_stat = gst_structure_get_value (rtx_stats, "rtx-count");
g_assert_cmpuint (g_value_get_uint64 (rtx_stat), ==, 5);
rtx_stat = gst_structure_get_value (rtx_stats, "success-count");
rtx_stat = gst_structure_get_value (rtx_stats, "rtx-success-count");
g_assert_cmpuint (g_value_get_uint64 (rtx_stat), ==, 1);
rtx_stat = gst_structure_get_value (rtx_stats, "rtx-rtt");