]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a typo in audiohook_read_frame_both.
authorMark Michelson <mmichelson@digium.com>
Fri, 11 Jul 2008 19:13:29 +0000 (19:13 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 11 Jul 2008 19:13:29 +0000 (19:13 +0000)
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/branches/1.4@130173 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/audiohook.c

index c6f1abec8aee275594fe3997a970b942e16d9d1e..e02c933c8c06cbedfe15daa7cae8045e5b1ca6c3 100644 (file)
@@ -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;