diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-01 23:09:18 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-01 23:09:18 +0000 |
commit | 185a873131b0486bff01f62d05b8cd8a328a5241 (patch) | |
tree | e53ed17039a8cc0d2131998587e96602e20656a5 /file.c | |
parent | 847acb197d1055932ff1184c17ccef8b91fd09c8 (diff) |
If no timingfd, use sched timing
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1153 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'file.c')
-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 |