diff options
author | Mark Spencer <markster@digium.com> | 2003-07-01 23:09:18 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-07-01 23:09:18 +0000 |
commit | db2ec82162d5d79a9b60907a240318140f0cd0bb (patch) | |
tree | e53ed17039a8cc0d2131998587e96602e20656a5 | |
parent | 20af2eb5711a0a25e8734d36b961c3b4e9762ff7 (diff) |
If no timingfd, use sched timing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | file.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -524,7 +524,9 @@ static int ast_readaudio_callback(void *data) } if (whennext != s->lasttimeout) { #ifdef ZAPTEL_OPTIMIZATIONS - ast_settimeout(s->owner, whennext, ast_readaudio_callback, s); + if (s->timingfd > -1) + ast_settimeout(s->owner, whennext, ast_readaudio_callback, s); + else #else s->owner->streamid = ast_sched_add(s->owner->sched, whennext/8, ast_readaudio_callback, s); #endif |