Browse Source

MT#55283 carry over PT flags with reuse

Change-Id: I19a4ae523f372be825c0814c29b005fd961cbc76
(cherry picked from commit 176a834500)
mr13.5
Richard Fuchs 3 months ago
parent
commit
8ce304dd5f
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      daemon/codec.c

+ 7
- 1
daemon/codec.c View File

@ -5642,10 +5642,16 @@ void __codec_store_populate_reuse(struct codec_store *dst, struct codec_store *s
STR_FMT(&pt->encoding_with_params),
STR_FMT0(&pt->format_parameters),
pt->payload_type);
// replace existing entry with new one in same position,
// in case options have changed
// but carry over flags
__auto_type dup = rtp_payload_type_dup(pt);
dup->for_transcoding = orig_pt->for_transcoding;
dup->accepted = orig_pt->accepted;
__auto_type pos = __codec_store_delete_link(orig_pt->prefs_link, dst);
codec_store_add_raw_link(dst, rtp_payload_type_dup(pt), pos);
codec_store_add_raw_link(dst, dup, pos);
}
else {
if (!a.answer_only) {


Loading…
Cancel
Save