pulsesink: port after merge
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 19 Aug 2011 14:13:23 +0000 (16:13 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 19 Aug 2011 14:13:23 +0000 (16:13 +0200)
ext/pulse/pulsesink.c

index a7fca18..dd89f99 100644 (file)
@@ -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);