From e3e3730cfaa4355cdcda18c35352ea56f0945720 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 12 Dec 2006 01:14:07 +0000 Subject: [PATCH] optimize git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3606 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 3ccf1f1f49..5474e0c582 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -1074,7 +1074,7 @@ static void conference_loop(conference_member_t *member) write_frame.data = data; use_buffer = member->mux_buffer; - while ((write_frame.datalen = (uint32_t)switch_buffer_read(use_buffer, write_frame.data, bytes))) { + if ((write_frame.datalen = (uint32_t)switch_buffer_read(use_buffer, write_frame.data, bytes))) { if (write_frame.datalen && switch_test_flag(member, MFLAG_CAN_HEAR)) { write_frame.samples = write_frame.datalen / 2; @@ -1087,6 +1087,7 @@ static void conference_loop(conference_member_t *member) } switch_mutex_unlock(member->audio_out_mutex); + continue; } }