[Freeswitch-svn] [commit] r3606 - freeswitch/trunk/src/mod/applications/mod_conference
Freeswitch SVN
anthm at freeswitch.org
Mon Dec 11 20:14:08 EST 2006
Author: anthm
Date: Mon Dec 11 20:14:07 2006
New Revision: 3606
Modified:
freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
Log:
optimize
Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c Mon Dec 11 20:14:07 2006
@@ -1074,7 +1074,7 @@
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 @@
}
switch_mutex_unlock(member->audio_out_mutex);
+ continue;
}
}
More information about the Freeswitch-svn
mailing list