From: Mark Spencer Date: Tue, 1 Jul 2003 23:09:18 +0000 (+0000) Subject: If no timingfd, use sched timing X-Git-Tag: 0.5.0~343 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db2ec82162d5d79a9b60907a240318140f0cd0bb;p=thirdparty%2Fasterisk.git If no timingfd, use sched timing git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1153 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/file.c b/file.c index b3e92e3156..fa0eb259d3 100755 --- a/file.c +++ b/file.c @@ -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