]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10019
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 9 Mar 2017 01:41:48 +0000 (19:41 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 9 Mar 2017 01:42:05 +0000 (19:42 -0600)
src/mod/applications/mod_conference/mod_conference.c

index 7b3591cc1e27441777599c18e5041315f63eb95d..2126ffb8cc720446a6a168ed5102f548bca42984 100644 (file)
@@ -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. */