Commit f7b390d6 authored by Wim Taymans's avatar Wim Taymans

Make elements nanoseconds aware

Original commit message from CVS:
Make elements nanoseconds aware
parent f1e50d1e
......@@ -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;
......
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment