git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6558 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-12-07 01:57:30 +00:00
parent a2f591c580
commit 70a19cee9e

View File

@ -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;