aboutsummaryrefslogtreecommitdiffstats
path: root/main/file.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-06 13:11:15 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-06 13:11:15 +0000
commit90380a16681bc2714beb813bb4eb4a40022556f7 (patch)
treeda303d3d4c80667bc204a73f8aa44ed9ecaa458c /main/file.c
parent3ca35205555dda4eb425cc10a07c8e7e442da973 (diff)
Merged revisions 63152 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r63152 | oej | 2007-05-06 14:28:38 +0200 (Sun, 06 May 2007) | 2 lines Stop the video stream when you stop playback of all streams for a call ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@63168 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c
index d0be7688e..038dd5f3a 100644
--- a/main/file.c
+++ b/main/file.c
@@ -137,6 +137,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;
}