mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 13:58:38 +00:00
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
file.c
6
file.c
@@ -618,14 +618,14 @@ static int ast_readaudio_callback(void *data)
|
||||
if (fr)
|
||||
ast_log(LOG_WARNING, "Failed to write frame\n");
|
||||
s->owner->streamid = -1;
|
||||
#ifdef ZAPTEL_OPTIMIZATIONS
|
||||
#ifdef HAVE_ZAPTEL
|
||||
ast_settimeout(s->owner, 0, NULL, NULL);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (whennext != s->lasttimeout) {
|
||||
#ifdef ZAPTEL_OPTIMIZATIONS
|
||||
#ifdef HAVE_ZAPTEL
|
||||
if (s->owner->timingfd > -1)
|
||||
ast_settimeout(s->owner, whennext, ast_readaudio_callback, s);
|
||||
else
|
||||
@@ -710,7 +710,7 @@ int ast_closestream(struct ast_filestream *f)
|
||||
if (f->owner->streamid > -1)
|
||||
ast_sched_del(f->owner->sched, f->owner->streamid);
|
||||
f->owner->streamid = -1;
|
||||
#ifdef ZAPTEL_OPTIMIZATIONS
|
||||
#ifdef HAVE_ZAPTEL
|
||||
ast_settimeout(f->owner, 0, NULL, NULL);
|
||||
#endif
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user