Skip to content

Commit

Permalink
MT#60347 remove redundant hash table lookup
Browse files Browse the repository at this point in the history
Change-Id: I3e2a355f0a24b645847f1b5c88f13fc19f2bde2d
  • Loading branch information
rfuchs committed Aug 14, 2024
1 parent 8c45a44 commit 6b305eb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions daemon/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -5693,8 +5693,6 @@ void __codec_store_answer(struct codec_store *dst, struct codec_store *src, sdp_
if (src_pt && (!pt || !rtp_payload_type_eq_compat(src_pt, pt)))
pt = src_pt;
}
if (!pt && a.allow_asymmetric)
pt = t_hash_table_lookup(src->codecs, GINT_TO_POINTER(h->cn_payload_type));
if (!pt)
ilogs(codec, LOG_DEBUG, "CN payload type %i is missing", h->cn_payload_type);
else
Expand All @@ -5711,8 +5709,6 @@ void __codec_store_answer(struct codec_store *dst, struct codec_store *src, sdp_
if (src_pt && (!pt || !rtp_payload_type_eq_compat(src_pt, pt)))
pt = src_pt;
}
if (!pt && a.allow_asymmetric)
pt = t_hash_table_lookup(src->codecs, GINT_TO_POINTER(dtmf_payload_type));
if (!pt)
ilogs(codec, LOG_DEBUG, "DTMF payload type %i is missing", dtmf_payload_type);
else
Expand Down

0 comments on commit 6b305eb

Please sign in to comment.