From 0eeffef222d56e55d25d7334612c72921aa2d9f2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 19 Aug 2011 16:13:23 +0200 Subject: [PATCH] pulsesink: port after merge --- ext/pulse/pulsesink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index a7fca18..dd89f99 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -1487,9 +1487,9 @@ gst_pulseringbuffer_commit (GstRingBuffer * buf, guint64 * sample, } /* Recalculate what we can write in the next chunk */ - towrite = out_samples * bps; + towrite = out_samples * bpf; if (pbuf->m_writable > towrite) - pbuf->m_writable = towrite; + pbuf->m_writable = towrite; GST_LOG_OBJECT (psink, "requesting %" G_GSIZE_FORMAT " bytes of " "shared memory", pbuf->m_writable); -- 2.7.4