summaryrefslogtreecommitdiffstats
path: root/src/pulsesink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsesink.c')
-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) {