mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
Add GST_DURATION() support to ALSA
Original commit message from CVS: Add GST_DURATION() support to ALSA
This commit is contained in:
parent
ebb066d861
commit
483700af2a
1 changed files with 1 additions and 0 deletions
|
@ -1124,6 +1124,7 @@ gst_alsa_src_loop (GstElement *element)
|
||||||
if (copied != this->period_size)
|
if (copied != this->period_size)
|
||||||
GST_BUFFER_SIZE (src->buf[i]) = gst_alsa_samples_to_bytes (this, copied);
|
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_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]);
|
gst_pad_push (this->pad[i], src->buf[i]);
|
||||||
src->buf[i] = NULL;
|
src->buf[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue