From: Michael Jerris Date: Thu, 9 Oct 2008 22:50:44 +0000 (+0000) Subject: fix resampler bug X-Git-Tag: v1.0.2~888 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75dc5caf6d69a5d19fa88a3cd1eddac67ae253b2;p=thirdparty%2Ffreeswitch.git fix resampler bug git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9918 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index ed4cb7d755..c8421addc8 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -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); }