Skip to content
Snippets Groups Projects
Commit db2ec821 authored by Mark Spencer's avatar Mark Spencer
Browse files

If no timingfd, use sched timing

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 20af2eb5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment