summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-04-10 12:01:27 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-04-10 12:01:27 +0200
commit20a6908dfde4a5a76a61f620533bbb82e9a5b7e8 (patch)
tree4f75624eb385c2f87222c0d919c974448a4c0c71 /ext
parent3e7aede3ea4a0078dbbbf09b22eb762e5eda404b (diff)
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.
Diffstat (limited to 'ext')
-rw-r--r--ext/pulse/pulsesink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index bb0c7503..e2bc57da 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;