aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-02 20:06:21 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-02 20:06:21 +0000
commitf1e32844bbe862632aae323892e32fcbff118b02 (patch)
treef868448d8603a2d7a29251f19275c426c8e4037c /file.c
parent04c0a7629a930a14965110dd4fe5749432b9f6e2 (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/trunk@24329 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 93f47be48..4824d77db 100644
--- a/file.c
+++ b/file.c
@@ -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);
}