diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-06 12:28:38 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-06 12:28:38 +0000 |
commit | 96692beaf7fd2d8c2ba5ae3906d27fc2021286b7 (patch) | |
tree | ce89214ec5eb6c88a983dcb2d403d4a2903c8d64 /main | |
parent | 5f457ca03f64e37abeb3a8d3d858c1104525edc5 (diff) |
Stop the video stream when you stop playback of all streams for a call
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@63152 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c index 242236f17..91c863b6f 100644 --- a/main/file.c +++ b/main/file.c @@ -143,6 +143,11 @@ int ast_stopstream(struct ast_channel *tmp) if (tmp->oldwriteformat && ast_set_write_format(tmp, tmp->oldwriteformat)) ast_log(LOG_WARNING, "Unable to restore format back to %d\n", tmp->oldwriteformat); } + /* Stop the video stream too */ + if (tmp->vstream != NULL) { + ast_closestream(tmp->vstream); + tmp->vstream = NULL; + } return 0; } |