mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
rtpsession: The stats min_interval is in seconds, not nanoseconds
We have to scale it to compare it against our clock times.
This commit is contained in:
parent
afe1d5a89f
commit
9d22ad421b
1 changed files with 1 additions and 1 deletions
|
@ -3562,7 +3562,7 @@ early:
|
||||||
/* Apply the rules from RFC 4585 section 3.5.3 */
|
/* Apply the rules from RFC 4585 section 3.5.3 */
|
||||||
if (stats->min_interval != 0 && !sess->first_rtcp) {
|
if (stats->min_interval != 0 && !sess->first_rtcp) {
|
||||||
GstClockTime T_rr_current_interval =
|
GstClockTime T_rr_current_interval =
|
||||||
g_random_double_range (0.5, 1.5) * stats->min_interval;
|
g_random_double_range (0.5, 1.5) * stats->min_interval * GST_SECOND;
|
||||||
|
|
||||||
/* This will caused the RTCP to be suppressed if no FB packets are added */
|
/* This will caused the RTCP to be suppressed if no FB packets are added */
|
||||||
if (sess->last_rtcp_send_time + T_rr_current_interval > new_send_time) {
|
if (sess->last_rtcp_send_time + T_rr_current_interval > new_send_time) {
|
||||||
|
|
Loading…
Reference in a new issue