rtp_engine.c: Minor tweaks.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 23 Jul 2015 19:04:16 +0000 (14:04 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 30 Jul 2015 22:11:58 +0000 (17:11 -0500)
commitbc1eae55cb818c9d7963549ba9927a06c6b6f1ac
tree3b38c30388657675ec9221a4a7ca3ad1dbe9b4a8
parentd12dc97fc9c1f86f7952314a5b5e7bcc6bc87098
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