]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
back off input buffer slower instead of flushing it
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 8 Jun 2015 18:17:47 +0000 (13:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 8 Jun 2015 18:17:52 +0000 (13:17 -0500)
src/mod/applications/mod_conference/mod_conference.c

index fb5837a0377508ed39b096481fea318763ecbaf5..fa3386976bb33b81f8b34c7a6c025665bcafdf95 100644 (file)
@@ -6562,8 +6562,7 @@ static void *SWITCH_THREAD_FUNC conference_loop_input(switch_thread_t *thread, v
                                /* Write the audio into the input buffer */
                                switch_mutex_lock(member->audio_in_mutex);
                                if (switch_buffer_inuse(member->audio_buffer) > flush_len) {
-                                       switch_buffer_zero(member->audio_buffer);
-                                       switch_channel_audio_sync(channel);
+                                       switch_buffer_toss(member->audio_buffer, tmp_frame.datalen);
                                }
                                ok = switch_buffer_write(member->audio_buffer, tmp_frame.data, tmp_frame.datalen);
                                switch_mutex_unlock(member->audio_in_mutex);