summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2009-10-06 22:28:50 +0300
committerWim Taymans <wim.taymans@collabora.co.uk>2009-10-14 12:05:14 +0200
commitf9274226e807d9fccf2131001c1fb6dbc8e470fc (patch)
tree6606f4cd1e82fc1e68b0175e7cea948f03c0ba54 /ext
parent678157476c7881f695cf1f253af11244040a5928 (diff)
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
Diffstat (limited to 'ext')
-rw-r--r--ext/pulse/pulsesink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index 51f19e75..58344e26 100644
--- a/ext/pulse/pulsesink.c
+++ b/ext/pulse/pulsesink.c
@@ -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);