diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 19:39:50 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 19:39:50 +0000 |
commit | e53975eb04bccbaf0ed54a5fc3e7566b3e3596fa (patch) | |
tree | 36c54896381426452c3185a57ecc08ca97bc1fca /file.c | |
parent | d939d18a09b99b1d7c53461eb2165dee4333ae43 (diff) |
Make certain ast_stopstream() sets the channel's stream members to NULL after closing them. #7067 (jcomellas)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@24295 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'file.c')
-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); } |