Original commit message from CVS:
Make elements nanoseconds aware
outbuf = gst_buffer_new ();
GST_BUFFER_DATA (outbuf) = g_malloc (2 * vorbisdec->vi.channels * bout);
GST_BUFFER_SIZE (outbuf) = 2 * vorbisdec->vi.channels * bout;
- GST_BUFFER_TIMESTAMP (outbuf) = vorbisdec->total_out * 1000000LL / vorbisdec->vi.rate;
+ GST_BUFFER_TIMESTAMP (outbuf) = vorbisdec->total_out * GST_SECOND / vorbisdec->vi.rate;
vorbisdec->total_out += bout;
GST_DPMAN_PREPROCESS(src->dpman, src->samples_per_buffer, src->timestamp);
- src->timestamp += (gint64)src->samples_per_buffer * 1000000000LL / (gint64)src->samplerate;
+ src->timestamp += (gint64)src->samples_per_buffer * GST_SECOND / (gint64)src->samplerate;
while(GST_DPMAN_PROCESS(src->dpman, i)) {