Add GST_DURATION() support to ALSA

Original commit message from CVS:
Add GST_DURATION() support to ALSA
This commit is contained in:
Ronald S. Bultje 2003-09-12 11:34:34 +00:00
parent ebb066d861
commit 483700af2a

View file

@ -1124,6 +1124,7 @@ gst_alsa_src_loop (GstElement *element)
if (copied != this->period_size)
GST_BUFFER_SIZE (src->buf[i]) = gst_alsa_samples_to_bytes (this, copied);
GST_BUFFER_TIMESTAMP (src->buf[i]) = gst_alsa_samples_to_timestamp (this, this->transmitted);
GST_BUFFER_DURATION (src->buf[i]) = gst_alsa_samples_to_timestamp (this, copied);
gst_pad_push (this->pad[i], src->buf[i]);
src->buf[i] = NULL;
}