pulsesink: set desired minreq value to segsize/latency-time
If we let the daemon decide freely by passing -1, we end up always getting 20ms. We want to set this value because in some cases we want to select a higher latency-time in order to save power. Fixes #597601
This commit is contained in:
parent
678157476c
commit
f9274226e8
@ -667,7 +667,7 @@ gst_pulseringbuffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec)
|
||||
wanted.tlength = spec->segtotal * spec->segsize;
|
||||
wanted.maxlength = -1;
|
||||
wanted.prebuf = 0;
|
||||
wanted.minreq = -1;
|
||||
wanted.minreq = spec->segsize;
|
||||
|
||||
GST_INFO_OBJECT (psink, "tlength: %d", wanted.tlength);
|
||||
GST_INFO_OBJECT (psink, "maxlength: %d", wanted.maxlength);
|
||||
|
Loading…
x
Reference in New Issue
Block a user