mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
rtpstats: Average RTCP packet size is in bytes, bandwidths in bits
We need to convert the size to bits for our calculations. https://bugzilla.gnome.org/show_bug.cgi?id=747863
This commit is contained in:
parent
475b1e607e
commit
73c0c2920f
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ rtp_stats_calculate_rtcp_interval (RTPSessionStats * stats, gboolean we_send,
|
||||||
if (rtcp_bw <= 0.0001)
|
if (rtcp_bw <= 0.0001)
|
||||||
return GST_CLOCK_TIME_NONE;
|
return GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
avg_rtcp_size = stats->avg_rtcp_packet_size;
|
avg_rtcp_size = 8.0 * stats->avg_rtcp_packet_size;
|
||||||
/*
|
/*
|
||||||
* The effective number of sites times the average packet size is
|
* The effective number of sites times the average packet size is
|
||||||
* the total number of octets sent when each site sends a report.
|
* the total number of octets sent when each site sends a report.
|
||||||
|
@ -249,7 +249,7 @@ rtp_stats_calculate_bye_interval (RTPSessionStats * stats)
|
||||||
if (rtcp_bw <= 0.0001)
|
if (rtcp_bw <= 0.0001)
|
||||||
return GST_CLOCK_TIME_NONE;
|
return GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
avg_rtcp_size = stats->avg_rtcp_packet_size;
|
avg_rtcp_size = 8.0 * stats->avg_rtcp_packet_size;
|
||||||
/*
|
/*
|
||||||
* The effective number of sites times the average packet size is
|
* The effective number of sites times the average packet size is
|
||||||
* the total number of octets sent when each site sends a report.
|
* the total number of octets sent when each site sends a report.
|
||||||
|
|
Loading…
Reference in a new issue