From 893f3ace64852cefd19d16604319e6f7a27a76a6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 8 Mar 2017 19:41:48 -0600 Subject: [PATCH] FS-10019 --- src/mod/applications/mod_conference/mod_conference.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 7b3591cc1e..2126ffb8cc 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -389,6 +389,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob } } + switch_mutex_lock(conference->file_mutex); /* If a file or speech event is being played */ if (conference->fnode && !switch_test_flag(conference->fnode, NFLAG_PAUSE)) { /* Lead in time */ @@ -495,6 +496,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob } } } + switch_mutex_lock(conference->file_mutex); if (ready || has_file_data) { /* Use more bits in the main_frame to preserve the exact sum of the audio samples. */