]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp_engine.c: Minor tweaks. 02/1002/1
authorRichard Mudgett <rmudgett@digium.com>
Thu, 23 Jul 2015 19:04:16 +0000 (14:04 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 31 Jul 2015 01:34:23 +0000 (20:34 -0500)
commit7427c7f13b1d0c9095e83a3ea38394f521d3a75e
tree05ba07d2a100bfe4ff80930d6649a5c3c9a42782
parente20f435b6093c2c72e678b9fad1ed037c3191b88
rtp_engine.c: Minor tweaks.

* Fix off nominial ref leak of new_type in
ast_rtp_codecs_payloads_set_m_type().

* No need to lock static_RTP_PT_lock in
ast_rtp_codecs_payloads_set_m_type() and
ast_rtp_codecs_payloads_set_rtpmap_type_rate() before the payload type
parameter sanity check.

* No need to create ast_rtp_payload_type ao2 objects with a lock since the
lock is not used.

Change-Id: I64dd1bb4dfabdc7e981e3f61448beac9bb7504d4
main/rtp_engine.c