diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-11 19:13:29 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-11 19:13:29 +0000 |
commit | 0da6dc444e47ae2e231411a8098398674a853dd2 (patch) | |
tree | 000c2d7a8f39fe3e4b497cbc52e0687e401b759d /main/audiohook.c | |
parent | 834409475ff484619842db5fe37e32e5248a85d5 (diff) |
Fix a typo in audiohook_read_frame_both.
While this change has not been proven to fix any
specific issue, it is incorrect and could cause
unforeseen problems.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130173 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/audiohook.c')
-rw-r--r-- | main/audiohook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/audiohook.c b/main/audiohook.c index c6f1abec8..e02c933c8 100644 --- a/main/audiohook.c +++ b/main/audiohook.c @@ -216,7 +216,7 @@ static struct ast_frame *audiohook_read_frame_both(struct ast_audiohook *audioho } /* If we want to provide only a write factory make sure we aren't waiting for other audio */ - if (usable_write && !usable_read && (ast_tvdiff_ms(ast_tvnow(), audiohook->write_time) < (samples/8)*2)) { + if (usable_write && !usable_read && (ast_tvdiff_ms(ast_tvnow(), audiohook->read_time) < (samples/8)*2)) { if (option_debug) ast_log(LOG_DEBUG, "Read factory %p was pretty quick last time, waiting for them.\n", &audiohook->read_factory); return NULL; |