pulsesink: bps is signed int to avoid overflow
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 10 Apr 2009 10:01:27 +0000 (12:01 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 10 Apr 2009 10:01:27 +0000 (12:01 +0200)
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

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