mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
If no timingfd, use sched timing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
file.c
4
file.c
@@ -524,7 +524,9 @@ static int ast_readaudio_callback(void *data)
|
|||||||
}
|
}
|
||||||
if (whennext != s->lasttimeout) {
|
if (whennext != s->lasttimeout) {
|
||||||
#ifdef ZAPTEL_OPTIMIZATIONS
|
#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
|
#else
|
||||||
s->owner->streamid = ast_sched_add(s->owner->sched, whennext/8, ast_readaudio_callback, s);
|
s->owner->streamid = ast_sched_add(s->owner->sched, whennext/8, ast_readaudio_callback, s);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user