aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-11 20:03:23 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-11 20:03:23 +0000
commitdd3bdbadeb89c8ddcb28dce2799f3ac9857ad370 (patch)
tree7213625488183125b7aacb378d26b9d0acfa96d4
parent0da6dc444e47ae2e231411a8098398674a853dd2 (diff)
Remove redundant logic
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130236 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/audiohook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/audiohook.c b/main/audiohook.c
index e02c933c8..32d1f05cd 100644
--- a/main/audiohook.c
+++ b/main/audiohook.c
@@ -223,7 +223,7 @@ static struct ast_frame *audiohook_read_frame_both(struct ast_audiohook *audioho
}
/* Start with the read factory... if there are enough samples, read them in */
- if (usable_read && ast_slinfactory_available(&audiohook->read_factory) >= samples) {
+ if (usable_read) {
if (ast_slinfactory_read(&audiohook->read_factory, buf1, samples)) {
read_buf = buf1;
/* Adjust read volume if need be */
@@ -242,7 +242,7 @@ static struct ast_frame *audiohook_read_frame_both(struct ast_audiohook *audioho
ast_log(LOG_DEBUG, "Failed to get %zd samples from read factory %p\n", samples, &audiohook->read_factory);
/* Move on to the write factory... if there are enough samples, read them in */
- if (usable_write && ast_slinfactory_available(&audiohook->write_factory) >= samples) {
+ if (usable_write) {
if (ast_slinfactory_read(&audiohook->write_factory, buf2, samples)) {
write_buf = buf2;
/* Adjust write volume if need be */