[Freeswitch-svn] [commit] r13236 - freeswitch/trunk/src/mod/endpoints/mod_loopback
FreeSWITCH SVN
anthm at freeswitch.org
Tue May 5 12:35:31 PDT 2009
Author: anthm
Date: Tue May 5 14:35:31 2009
New Revision: 13236
Log:
yipee, ten millionth bug in mod_loopaback
Modified:
freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c Tue May 5 14:35:31 2009
@@ -542,16 +542,15 @@
*frame = NULL;
- mutex = tech_pvt->mutex;
- switch_mutex_lock(mutex);
-
-
if (!switch_channel_ready(channel)) {
goto end;
}
switch_core_timer_next(&tech_pvt->timer);
+ mutex = tech_pvt->mutex;
+ switch_mutex_lock(mutex);
+
if (switch_queue_trypop(tech_pvt->frame_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
if (tech_pvt->write_frame) {
switch_frame_free(&tech_pvt->write_frame);
More information about the Freeswitch-svn
mailing list