From 20a6908dfde4a5a76a61f620533bbb82e9a5b7e8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 10 Apr 2009 12:01:27 +0200 Subject: [PATCH] pulsesink: bps is signed int to avoid overflow Keep bps as gint instead of guint because we will be doing signed math with it later on and we don't want weird results. --- ext/pulse/pulsesink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index bb0c750370..e2bc57da27 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -929,11 +929,10 @@ gst_pulseringbuffer_commit (GstRingBuffer * buf, guint64 * sample, GstPulseSink *psink; GstPulseRingBuffer *pbuf; guint result; - guint bps; guint8 *data_end; gboolean reverse; gint *toprocess; - gint inr, outr; + gint inr, outr, bps; gint64 offset; guint bufsize;