diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-07 01:03:45 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-07 01:03:45 +0000 |
commit | e25b9efb0f05fab50cbb65dbf1113b2b02baa2f8 (patch) | |
tree | 3c4cb34245dc69ec59256646549ad7a1cfc89329 /channel.c | |
parent | c1c7c4568b629a6772e806f77a46df3c1d84657b (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@39080 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1307,10 +1307,16 @@ int ast_hangup(struct ast_channel *chan) return 0; } free_translation(chan); - if (chan->stream) /* Close audio stream */ + /* Close audio stream */ + if (chan->stream) { ast_closestream(chan->stream); - if (chan->vstream) /* Close video stream */ + chan->stream = NULL; + } + /* Close video stream */ + if (chan->vstream) { ast_closestream(chan->vstream); + chan->vstream = NULL; + } if (chan->sched) { sched_context_destroy(chan->sched); chan->sched = NULL; |