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: allow compilation without hook support

This commit is contained in:
Steffen Vogel 2019-04-06 14:19:50 +02:00
parent f4d36c4511
commit d10f4e3b1f

View file

@ -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);