diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 20:07:59 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 20:07:59 +0000 |
commit | bb834ea8e8a0750dbaba30e863f7d84b81510399 (patch) | |
tree | 97b8e1b8eea05c7b4f313adf02e52ca4fc21a31a | |
parent | 5f4f40414a85179d99c1726997a3da9dadc6254d (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@24338 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | file.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -184,10 +184,13 @@ 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) + if (tmp->vstream) { ast_closestream(tmp->vstream); + tmp->vstream = NULL; + } if (tmp->stream) { ast_closestream(tmp->stream); + tmp->stream = NULL; if (tmp->oldwriteformat && ast_set_write_format(tmp, tmp->oldwriteformat)) ast_log(LOG_WARNING, "Unable to restore format back to %d\n", tmp->oldwriteformat); } |