Browse Source

MT#56861 set sensible ptime

... even for passthrough SSRC handlers

Change-Id: I4ffebeceeef034ae6d0b8353ed3decfa380ae1c7
pull/1642/head
Richard Fuchs 3 years ago
parent
commit
fb811bcb76
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/codec.c

+ 3
- 0
daemon/codec.c View File

@ -2421,6 +2421,9 @@ static struct ssrc_entry *__ssrc_handler_new(void *p) {
struct codec_handler *h = p; struct codec_handler *h = p;
struct codec_ssrc_handler *ch = obj_alloc0("codec_ssrc_handler", sizeof(*ch), __free_ssrc_handler); struct codec_ssrc_handler *ch = obj_alloc0("codec_ssrc_handler", sizeof(*ch), __free_ssrc_handler);
ch->handler = h; ch->handler = h;
ch->ptime = h->source_pt.ptime;
if (!ch->ptime)
ch->ptime = 20;
return &ch->h; return &ch->h;
} }


Loading…
Cancel
Save