mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
pulsesink: set some values to their defaults
Set the minreq and maxlength buffer attributes to -1 to let puleseaudio select a sensible value.
This commit is contained in:
parent
8bfd80e5a2
commit
b3c55f5ce5
1 changed files with 2 additions and 2 deletions
|
@ -619,9 +619,9 @@ gst_pulseringbuffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec)
|
|||
* when we cause an underrun, which causes time to continue. */
|
||||
memset (&buf_attr, 0, sizeof (buf_attr));
|
||||
buf_attr.tlength = spec->segtotal * spec->segsize;
|
||||
buf_attr.maxlength = buf_attr.tlength * 2;
|
||||
buf_attr.maxlength = -1;
|
||||
buf_attr.prebuf = 0;
|
||||
buf_attr.minreq = spec->segsize;
|
||||
buf_attr.minreq = -1;
|
||||
|
||||
GST_INFO_OBJECT (psink, "tlength: %d", buf_attr.tlength);
|
||||
GST_INFO_OBJECT (psink, "maxlength: %d", buf_attr.maxlength);
|
||||
|
|
Loading…
Reference in a new issue