summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-11-22 16:20:32 +0000
committerLennart Poettering <lennart@poettering.net>2007-11-22 16:20:32 +0000
commitbeceaa55e19d1395d2a11e0c57e203f8f6f78bc1 (patch)
tree766f7dc686ab7e1822eabf1837cbab204d118669 /src
parent2bcac7c5a252e500f201010b664ff42676bb577e (diff)
unbreak gst-pulse
git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@77 bb39ca4e-bce3-0310-b5d4-eea78a553289
Diffstat (limited to 'src')
-rw-r--r--src/pulsesink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsesink.c b/src/pulsesink.c
index d7039a7..f188bd5 100644
--- a/src/pulsesink.c
+++ b/src/pulsesink.c
@@ -396,7 +396,7 @@ static gboolean gst_pulsesink_prepare(GstAudioSink *asink, GstRingBufferSpec *sp
memset(&buf_attr, 0, sizeof(buf_attr));
buf_attr.tlength = spec->segtotal*spec->segsize;
buf_attr.maxlength = buf_attr.tlength*2;
- buf_attr.prebuf = buf_attr.tlength*2;
+ buf_attr.prebuf = buf_attr.tlength-spec->segsize;
buf_attr.minreq = spec->segsize;
if (pa_stream_connect_playback(pulsesink->stream, pulsesink->device, &buf_attr, PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE|PA_STREAM_NOT_MONOTONOUS, NULL, NULL) < 0) {