diff options
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; } |