diff options
author | Mark Spencer <markster@digium.com> | 2006-01-08 04:30:10 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2006-01-08 04:30:10 +0000 |
commit | 940c49390cd5f097f8c761d89132c533758fa0c8 (patch) | |
tree | b05576fee2e8c1c3d251a3558574b3bf5ca832b2 /file.c | |
parent | 353e5f1dc915de9250b23cfa6cb02ddceb6ee5ca (diff) |
Minor video fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -184,8 +184,6 @@ int ast_format_unregister(const char *name) int ast_stopstream(struct ast_channel *tmp) { /* Stop a running stream if there is one */ - if (tmp->vstream) - ast_closestream(tmp->vstream); if (tmp->stream) { ast_closestream(tmp->stream); if (tmp->oldwriteformat && ast_set_write_format(tmp, tmp->oldwriteformat)) @@ -730,6 +728,10 @@ int ast_closestream(struct ast_filestream *f) f->realfilename = NULL; } f->fmt->close(f); + if (f->vfs) { + ast_closestream(f->vfs); + f->vfs = NULL; + } return 0; } |