[Freeswitch-svn] [commit] r9918 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Thu Oct 9 18:50:44 EDT 2008


Author: mikej
Date: Thu Oct  9 18:50:44 2008
New Revision: 9918

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Log:
fix resampler bug

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Thu Oct  9 18:50:44 2008
@@ -1349,7 +1349,7 @@
 							}
 
 							olen = mlen;
-							if (ringback.fh->resampler) {
+							if (ringback.fh->resampler && ringback.fh->resampler->rfactor > 1) {
 								olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor);
 							}
 							



More information about the Freeswitch-svn mailing list