1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

rtp: initialize hooks properly before starting

This commit is contained in:
Steffen Vogel 2019-01-23 13:29:51 +01:00
parent bf40a85040
commit fe9508f6ba

View file

@ -87,6 +87,8 @@ static int rtp_aimd(struct node *n, double loss_frac)
else
rate = r->aimd.last_rate * r->aimd.b;
debug(5, "Set rate limiting for node %s to %f", node_name(n), rate);
r->aimd.last_rate = rate;
ret = rtp_set_rate(n, rate);
@ -335,6 +337,8 @@ int rtp_start(struct node *n)
if (ret)
return ret;
rtp_set_rate(n, r->aimd.last_rate);
vlist_push(&n->out.hooks, r->rtcp.throttle_hook);
/* Initialize RTP socket */