fix resampler bug

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9918 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-10-09 22:50:44 +00:00
parent 839fd37831
commit 75dc5caf6d
1 changed files with 1 additions and 1 deletions

View File

@ -1349,7 +1349,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
}
olen = mlen;
if (ringback.fh->resampler) {
if (ringback.fh->resampler && ringback.fh->resampler->rfactor > 1) {
olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor);
}