diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-21 20:03:38 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-21 20:03:38 +0000 |
commit | f52482ea6d15d35456ce85feed0014ebc8784aa4 (patch) | |
tree | 22124f4c55a5575d87bcf56ca89b4bf83dc37c8d /apps | |
parent | 998b9da9ae5519f9aed17dc92d08c945dea28be5 (diff) |
Only start playing the next file if we have not been quieted.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55947 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_speech_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 0a18c38a9..a2a075767 100644 --- a/apps/app_speech_utils.c +++ b/apps/app_speech_utils.c @@ -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! */ while (done == 0) { /* 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 */ ast_stopstream(chan); /* Start new stream */ |