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:51:02 +0000 (02:51 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 2 May 2012 02:51:02 +0000 (02:51 +0000)
commit54143892aff3d7fbc5b413b947a227a291fdcb86
treefbdbeb9550f7bb1c577577ec89f6648e9014be06
parent355a6d6f37a7b8d0618ccf580fe5edc146e8ca77
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.
........

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

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