Make elements nanoseconds aware

Original commit message from CVS:
Make elements nanoseconds aware
This commit is contained in:
Wim Taymans 2002-06-02 13:25:39 +00:00
parent f1e50d1ec7
commit f7b390d6e7
2 changed files with 2 additions and 2 deletions

View file

@ -412,7 +412,7 @@ gst_vorbisdec_loop (GstElement * element)
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;

View file

@ -227,7 +227,7 @@ gst_sinesrc_get(GstPad *pad)
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)) {