diff options
author | automerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-07 22:09:13 +0000 |
---|---|---|
committer | automerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-07 22:09:13 +0000 |
commit | 3dc471a0f80be2b633f27ca463a27faad962a138 (patch) | |
tree | 8e4c23cb4c91f43de829a89b16da9e5bb5ec0735 | |
parent | 4c70ab48a544ef5605edb7641681253521182dcf (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@49865 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_dictate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_dictate.c b/apps/app_dictate.c index 91a1650ea..c54457360 100644 --- a/apps/app_dictate.c +++ b/apps/app_dictate.c @@ -257,7 +257,8 @@ static int dictate_exec(struct ast_channel *chan, void *data) if (lastop != DFLAG_PLAY) { lastop = DFLAG_PLAY; ast_closestream(fs); - fs = ast_openstream(chan, path, chan->language); + if (!(fs = ast_openstream(chan, path, chan->language))) + break; ast_seekstream(fs, samples, SEEK_SET); chan->stream = NULL; } |