Browse Source

MT#55283 convert t38_gateway to int64_t

Change-Id: If2d32a943402c70565c60240d77e3932289c4e95
pull/1938/head
Richard Fuchs 8 months ago
parent
commit
8c1d79815d
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      daemon/t38.c
  2. +1
    -1
      include/t38.h

+ 2
- 2
daemon/t38.c View File

@ -288,7 +288,7 @@ static bool t38_pcm_player(struct media_player *mp) {
tg->pts += num;
// handle fill-in
if (timeval_diff(timeval_from_us(rtpe_now), tg->last_rx_ts) > 30000) {
if (rtpe_now - tg->last_rx_ts > 30000) {
ilog(LOG_DEBUG, "Adding T.38 fill-in samples");
t38_gateway_rx_fillin(tg->gw, 80);
}
@ -525,7 +525,7 @@ int t38_gateway_input_samples(struct t38_gateway *tg, int16_t amp[], int len) {
ilog(LOG_WARN | LOG_FLAG_LIMIT, "%i PCM samples were not processed by the T.38 gateway",
left);
tg->last_rx_ts = timeval_from_us(rtpe_now);
tg->last_rx_ts = rtpe_now;
mutex_unlock(&tg->lock);


+ 1
- 1
include/t38.h View File

@ -66,7 +66,7 @@ struct t38_gateway {
unsigned long long pts;
// to handle PCM fill-in
struct timeval last_rx_ts;
int64_t last_rx_ts;
};
void t38_init(void);


Loading…
Cancel
Save