aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-26 17:20:58 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-26 17:20:58 +0000
commit050c7b68b361903c60e0451b32da2a0d3805dee6 (patch)
tree5fb3af1e3cb2dde48eed4f168ab9ee0ebf67cbcb
parent313ac29ab2734cc8a5f431f82539066841bfb092 (diff)
Close the audio file before sending it to the post processing application.
(closes issue #11357) Reported by: reformed Patches: mixmonitor.patch uploaded by reformed (license 330) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89587 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_mixmonitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c
index ec9c2e2a3..eed159d69 100644
--- a/apps/app_mixmonitor.c
+++ b/apps/app_mixmonitor.c
@@ -211,14 +211,14 @@ static void *mixmonitor_thread(void *obj)
if (option_verbose > 1)
ast_verbose(VERBOSE_PREFIX_2 "End MixMonitor Recording %s\n", mixmonitor->name);
+ if (fs)
+ ast_closestream(fs);
+
if (mixmonitor->post_process) {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_2 "Executing [%s]\n", mixmonitor->post_process);
ast_safe_system(mixmonitor->post_process);
}
-
- if (fs)
- ast_closestream(fs);
free(mixmonitor);