]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Add API call to determine if format capability structure is "empty".
authorMark Michelson <mmichelson@digium.com>
Thu, 18 Sep 2014 16:38:26 +0000 (16:38 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 18 Sep 2014 16:38:26 +0000 (16:38 +0000)
commitfa6313ad29153c17786b88693729f7a413e3f3e8
tree6099e749908091e392a2f09b8130a3d56d45ceb8
parent389db2b720571a035d4bbee12a139003eeb7612d
Add API call to determine if format capability structure is "empty".

Empty here means that there are no formats in the format_cap structure
or the only format in it is the "none" format.

I've added calls to check the emptiness of a format_cap in a few places
in order to short-circuit operations that would otherwise be pointless
as well as to prevent some assertions from being triggered in cases
where channels with no formats are used.
........

Merged revisions 423414 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@423415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/format_cap.h
main/channel.c
main/format_cap.c
main/translate.c