]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix false reporting of an error by set_format().
authorRussell Bryant <russell@russellbryant.com>
Wed, 24 Nov 2010 20:22:32 +0000 (20:22 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 24 Nov 2010 20:22:32 +0000 (20:22 +0000)
commit41656ad0bf088c1a080eb2619d3afdab0743658e
tree926e2a6d8313a09abb4efc45ea5b997f9d76babb
parent72d3cd8b47621d589043bc118b7226bdf6c28a4b
Fix false reporting of an error by set_format().

In the case that the native format was able to be changed to match the
new requested format, the code proceeded to attempt to build a translation
path, anyway.  The result would be NULL, since no translation path is
necessary and resulted in this function thinking an error has occurred.
This case is now specifically caught and no attempt to build a translation
path is attempted.

Thanks to our automated tests and bamboo.asterisk.org for catching this problem
and making a whole lot of noise when things started failing.  :-)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@296082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c