]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Stop the video stream when you stop playback of all streams for a call
authorOlle Johansson <oej@edvina.net>
Sun, 6 May 2007 12:28:38 +0000 (12:28 +0000)
committerOlle Johansson <oej@edvina.net>
Sun, 6 May 2007 12:28:38 +0000 (12:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63152 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/file.c

index 242236f17d4a05ab374a97065012cfc642aa9f51..91c863b6f26495d9a20d710abbd34fccbc8ecfbe 100644 (file)
@@ -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;
 }