From: Olle Johansson Date: Sun, 6 May 2007 13:11:15 +0000 (+0000) Subject: Merged revisions 63152 via svnmerge from X-Git-Tag: 1.6.0-beta1~3^2~2739 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f8548bf3ba31a5e24a249f3441d77d9197a3b37;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@63168 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/file.c b/main/file.c index d0be7688e9..038dd5f3a9 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; }