Index: gstaudioscale.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/gst/audioscale/Attic/gstaudioscale.c,v
retrieving revision 1.49.2.7
diff -u -r1.49.2.7 gstaudioscale.c
--- gstaudioscale.c	27 Jul 2005 11:56:01 -0000	1.49.2.7
+++ gstaudioscale.c	14 Oct 2005 19:16:22 -0000
@@ -380,9 +380,10 @@
     GST_DEBUG ("Number of iterations: %d", audioscale->num_iterations);
 
     gst_resample_init (audioscale->gst_resample);
-  }
 
-  audioscale->sample_duration = (GstClockTime) (GST_SECOND / r->o_rate);
+    audioscale->sample_duration = (GstClockTime) (GST_SECOND / audioscale->gst_resample->o_rate);
+  }else
+    audioscale->sample_duration = (GstClockTime) (GST_SECOND / r->o_rate);
 
   return link_ret;
 }
