From beceaa55e19d1395d2a11e0c57e203f8f6f78bc1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Nov 2007 16:20:32 +0000 Subject: unbreak gst-pulse git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@77 bb39ca4e-bce3-0310-b5d4-eea78a553289 --- src/pulsesink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit