diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-07-11 19:14:15 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-07-11 19:14:15 +0000 |
commit | 48d39547ec8d61f1b1f8deb6b0dec34be951c37f (patch) | |
tree | 93b2078ff75cbf55363d1a03d6e5ae3482d33198 /main | |
parent | b66aa676faa786bf96bada8d7f769a2de7d15380 (diff) |
Merged revisions 130173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r130173 | mmichelson | 2008-07-11 14:13:29 -0500 (Fri, 11 Jul 2008) | 7 lines
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: https://origsvn.digium.com/svn/asterisk/trunk@130174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-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 0e75cc6cd..930c75e52 100644 --- a/main/audiohook.c +++ b/main/audiohook.c @@ -207,7 +207,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)) { ast_debug(1, "Read factory %p was pretty quick last time, waiting for them.\n", &audiohook->read_factory); return NULL; } |