]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix resampler bug
authorMichael Jerris <mike@jerris.com>
Thu, 9 Oct 2008 22:50:44 +0000 (22:50 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 9 Oct 2008 22:50:44 +0000 (22:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9918 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index ed4cb7d755532e1e5560bd2c36ea2b5b23c8c361..c8421addc8d1e966f61b8dcf84f17257b9260d79 100644 (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);
                                                        }