mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
rtp: allow compilation without hook support
This commit is contained in:
parent
f4d36c4511
commit
d10f4e3b1f
1 changed files with 5 additions and 0 deletions
|
@ -391,6 +391,7 @@ int rtp_start(struct node *n)
|
|||
|
||||
/* Initialize throttle hook */
|
||||
if (r->rtcp.throttle_mode != RTCP_THROTTLE_DISABLED) {
|
||||
#ifdef WITH_HOOKS
|
||||
switch (r->rtcp.throttle_mode) {
|
||||
case RTCP_THROTTLE_HOOK_DECIMATE:
|
||||
r->rtcp.throttle_hook.decimate = new DecimateHook(nullptr, n, 0, 0);
|
||||
|
@ -405,6 +406,10 @@ int rtp_start(struct node *n)
|
|||
}
|
||||
|
||||
vlist_push(&n->out.hooks, (void *) r->rtcp.throttle_hook.limit_rate);
|
||||
#else
|
||||
r->logger->error("Throttle hooks not supported");
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
ret = rtp_set_rate(n, r->aimd.last_rate);
|
||||
|
|
Loading…
Add table
Reference in a new issue