From: Anthony Minessale Date: Fri, 7 Dec 2007 01:57:30 +0000 (+0000) Subject: doh X-Git-Tag: v1.0-rc1~1265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70a19cee9ed880ac9f0b723db1772b0083d83bd2;p=thirdparty%2Ffreeswitch.git doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6558 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 2ad20ed51b..815f61f14e 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -547,12 +547,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess write_frame->rate = session->write_resampler->to_rate; } - if (!do_bugs) { - do_write = 1; - write_frame = frame; - goto done; - } - if (session->bugs) { switch_media_bug_t *bp, *dp, *last = NULL; @@ -608,6 +602,12 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess switch_thread_rwlock_unlock(session->bug_rwlock); } + if (do_bugs) { + do_write = 1; + write_frame = frame; + goto done; + } + if (session->write_codec) { if (write_frame->datalen == session->write_codec->implementation->bytes_per_frame) { perfect = TRUE;