FreeCalypso > hg > themwi-rtp-lib
comparison src/twjit_in.c @ 40:d73b6ec27ae6
twjit: allow starting fill level to be 1
In most use cases, the smallest useful setting for starting fill level
is 2. However, our job is to provide mechanism rather than policy,
and the theoretical minimum is 1 - so let's support the latter
configuration.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 20 Dec 2024 20:07:01 +0000 |
parents | ec50018cc4ea |
children |
comparison
equal
deleted
inserted
replaced
39:1485211d4492 | 40:d73b6ec27ae6 |
---|---|
111 sb->head_ts = rx_ts; | 111 sb->head_ts = rx_ts; |
112 msgb_enqueue(&sb->queue, msg); | 112 msgb_enqueue(&sb->queue, msg); |
113 sb->depth = 1; | 113 sb->depth = 1; |
114 memcpy(&sb->conf, twjit->ext_config, sizeof(struct twrtp_jibuf_config)); | 114 memcpy(&sb->conf, twjit->ext_config, sizeof(struct twrtp_jibuf_config)); |
115 sb->drop_int_count = 0; | 115 sb->drop_int_count = 0; |
116 /* The setting of delta_ms is needed in order to pacify the check | |
117 * in twjit_out.c:starting_sb_is_ready() in configurations with | |
118 * bd_start=1. An alternative would be to enforce start_min_delta | |
119 * being not set with bd_start=1, but the present solution is | |
120 * simpler than doing cross-enforcement between two different | |
121 * parameter settings in vty. */ | |
122 sb->delta_ms = UINT32_MAX; | |
116 } | 123 } |
117 | 124 |
118 enum input_decision { | 125 enum input_decision { |
119 INPUT_CONTINUE, | 126 INPUT_CONTINUE, |
120 INPUT_TOO_OLD, | 127 INPUT_TOO_OLD, |