From: Anthony Minessale Date: Mon, 8 Jun 2015 18:17:47 +0000 (-0500) Subject: back off input buffer slower instead of flushing it X-Git-Tag: v1.6.2~537 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=773cf18736428d4e7040f847b9fac260f883a652;p=thirdparty%2Ffreeswitch.git back off input buffer slower instead of flushing it --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index fb5837a037..fa3386976b 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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);