automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@60708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Automerge Script 18 years ago
parent dc14a89f78
commit 6e2e94e498

@ -427,10 +427,15 @@ static int ast_filehelper(const char *filename, const char *filename2, const cha
s->fmt = f; s->fmt = f;
s->trans = NULL; s->trans = NULL;
s->filename = NULL; s->filename = NULL;
if (s->fmt->format < AST_FORMAT_MAX_AUDIO) if (s->fmt->format < AST_FORMAT_MAX_AUDIO) {
if (chan->stream)
ast_closestream(chan->stream);
chan->stream = s; chan->stream = s;
else } else {
if (chan->vstream)
ast_closestream(chan->vstream);
chan->vstream = s; chan->vstream = s;
}
} else { } else {
fclose(bfile); fclose(bfile);
ast_log(LOG_WARNING, "Unable to open file on %s\n", fn); ast_log(LOG_WARNING, "Unable to open file on %s\n", fn);

Loading…
Cancel
Save