Browse Source

MT#55283 add stub handler check for DTX

If the last used PT was a different one, check if it was an unknown PT.
If it was, then DTX can remain active, as the packet would have been
blocked.

Change-Id: Icc8bf195c30a2252b392bbccfeef34b91078ddd6
mr13.3
Richard Fuchs 8 months ago
parent
commit
5b4df60a4a
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      daemon/codec.c

+ 10
- 0
daemon/codec.c View File

@ -3839,6 +3839,16 @@ static void __dtx_send_later(struct codec_timer *ct) {
if (pt && pt->codec_def && pt->codec_def->supplemental)
continue;
if (mp_copy.sink.sink) {
// finally, if the recent PT is not actually known, then the packets
// were actually blocked, so the codec hasn't changed and DTX usage
// is still valid
__auto_type h = codec_handler_get(mp_copy.media, last_pt,
mp_copy.sink.sink->media, &mp_copy.sink);
if (h == &codec_handler_stub_ssrc)
continue;
}
// all other cases: codec change
break;
}


Loading…
Cancel
Save