diff --git a/main/file.c b/main/file.c index d0be7688e93775c2d865d022c2146cce0f2bca56..038dd5f3a96e68850988ab18316b9eae1bb63a79 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; }