Index: gstmad.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/ext/mad/gstmad.c,v
retrieving revision 1.109
diff -u -r1.109 gstmad.c
--- gstmad.c	1 Dec 2004 20:07:24 -0000	1.109
+++ gstmad.c	25 Dec 2004 02:52:14 -0000
@@ -1414,8 +1414,8 @@
               &mad->total_samples);
           mad->last_ts = GST_CLOCK_TIME_NONE;
         }
-        time_offset = mad->total_samples * GST_SECOND / mad->rate;
-        time_duration = (nsamples * GST_SECOND / mad->rate);
+        time_offset = mad->total_samples * GST_SECOND / mad->frame.header.samplerate;
+        time_duration = (nsamples * GST_SECOND / mad->frame.header.samplerate);
       }
 
       if (mad->index) {
