]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Only log a failure to get read/write samples from factories if it didn't happen
authorMatthew Jordan <mjordan@digium.com>
Wed, 2 May 2012 02:44:15 +0000 (02:44 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 2 May 2012 02:44:15 +0000 (02:44 +0000)
commit6e509421a70958fa36668b2e6d1a442134d20cf8
tree411ad5c103655ce504ec7232a1697fb0ad72d3cc
parentb960032856d5029aa4842c228bba3083eab114c5
Only log a failure to get read/write samples from factories if it didn't happen

In audiohook_read_frame_both, anytime samples are obtained from the read/write
factories a debug statement is logged stating that samples were not obtained
from the factories.  This statement used to only occur if option_debug was
turned on and no samples were obtained; in some refactoring when the
option_debug statement was removed, the "else" clause was removed as well.

This patch makes it so that those debug log statements only occur if the
condition leading up to them actually happened.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@364965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/audiohook.c