FreeCalypso > hg > themwi-rtp-lib
comparison src/twjit.c @ 39:1485211d4492
twjit: don't clear stats in twrtp_jibuf_reset()
This function needs to reset all operating state of twjit to initial,
but we should not clear any of our stats counters: those counters
are across the lifetime of the RTP endpoint, including stops and
restarts for call hold etc.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 20 Dec 2024 09:01:24 +0000 |
parents | 58e9719d1a84 |
children | bda6b24385f7 |
comparison
equal
deleted
inserted
replaced
38:781f491f20dd | 39:1485211d4492 |
---|---|
68 msgb_queue_free(&twjit->sb[1].queue); | 68 msgb_queue_free(&twjit->sb[1].queue); |
69 twjit->state = TWJIT_STATE_EMPTY; | 69 twjit->state = TWJIT_STATE_EMPTY; |
70 twjit->sb[0].depth = 0; | 70 twjit->sb[0].depth = 0; |
71 twjit->sb[1].depth = 0; | 71 twjit->sb[1].depth = 0; |
72 twjit->got_first_packet = false; | 72 twjit->got_first_packet = false; |
73 memset(&twjit->stats, 0, sizeof(struct twrtp_jibuf_stats)); | |
74 } | 73 } |