From: Joshua Colp Date: Wed, 21 Feb 2007 20:03:38 +0000 (+0000) Subject: Only start playing the next file if we have not been quieted. X-Git-Tag: 1.4.1~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10864c42eafd90f772105576ac3abe456c737693;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 0a18c38a9a..a2a0757676 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 */