mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
Make elements nanoseconds aware
Original commit message from CVS: Make elements nanoseconds aware
This commit is contained in:
parent
f1e50d1ec7
commit
f7b390d6e7
2 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue