Misc format capability fixes.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 31 Oct 2011 17:51:22 +0000 (17:51 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 31 Oct 2011 17:51:22 +0000 (17:51 +0000)
commited1e02a4d35a66697c8c73432c493b155d638c1b
tree266f0f9e02cd197e3b9693ffd38f044cc674455c
parent9333071c1f6639095b033a797f3cf2b7a4fc445a
Misc format capability fixes.

* Fixed typo in format_cap.c:joint_copy_helper() using the wrong variable.

* Fix potential race between checking if an interface exists and adding it
to the container in format.c:ast_format_attr_reg_interface().

* Fixed double rwlock destroy in format.c:ast_format_attr_init() error
exit path.

* Simplified format.c:find_interface() and format.c:has_interface().
........

Merged revisions 342824 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@342825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/format.c
main/format_cap.c