mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Only start playing the next file if we have not been quieted.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@55947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -560,7 +560,7 @@ static int speech_background(struct ast_channel *chan, void *data)
|
|||||||
/* Okay it's streaming so go into a loop grabbing frames! */
|
/* Okay it's streaming so go into a loop grabbing frames! */
|
||||||
while (done == 0) {
|
while (done == 0) {
|
||||||
/* If the filename is null and stream is not running, start up a new sound file */
|
/* If the filename is null and stream is not running, start up a new sound file */
|
||||||
if ((chan->streamid == -1 && chan->timingfunc == NULL) && (filename = strsep(&filename_tmp, "&"))) {
|
if (!quieted && (chan->streamid == -1 && chan->timingfunc == NULL) && (filename = strsep(&filename_tmp, "&"))) {
|
||||||
/* Discard old stream information */
|
/* Discard old stream information */
|
||||||
ast_stopstream(chan);
|
ast_stopstream(chan);
|
||||||
/* Start new stream */
|
/* Start new stream */
|
||||||
|
Reference in New Issue
Block a user