forked from Mirrors/freeswitch
doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6558 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a2f591c580
commit
70a19cee9e
@ -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;
|
write_frame->rate = session->write_resampler->to_rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!do_bugs) {
|
|
||||||
do_write = 1;
|
|
||||||
write_frame = frame;
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (session->bugs) {
|
if (session->bugs) {
|
||||||
switch_media_bug_t *bp, *dp, *last = NULL;
|
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);
|
switch_thread_rwlock_unlock(session->bug_rwlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (do_bugs) {
|
||||||
|
do_write = 1;
|
||||||
|
write_frame = frame;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
if (session->write_codec) {
|
if (session->write_codec) {
|
||||||
if (write_frame->datalen == session->write_codec->implementation->bytes_per_frame) {
|
if (write_frame->datalen == session->write_codec->implementation->bytes_per_frame) {
|
||||||
perfect = TRUE;
|
perfect = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user