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:
parent
bf40a85040
commit
fe9508f6ba
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue