diff options
author | BJ Weschke <bweschke@btwtech.com> | 2006-05-02 20:06:21 +0000 |
---|---|---|
committer | BJ Weschke <bweschke@btwtech.com> | 2006-05-02 20:06:21 +0000 |
commit | 30bb866a42a58df0de033bb95a4fdd138cd1aa03 (patch) | |
tree | f868448d8603a2d7a29251f19275c426c8e4037c | |
parent | 844205f3f9605c578deef4852c3b8c6191c0cf19 (diff) |
Make certain ast_stopstream() sets the channel's stream members to NULL after closing them. #7067 (jcomellas)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | file.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -143,6 +143,7 @@ int ast_stopstream(struct ast_channel *tmp) /* Stop a running stream if there is one */ 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); } |