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.
This commit is contained in:
Wim Taymans 2009-04-10 12:01:27 +02:00
parent 3e7aede3ea
commit 20a6908dfd

View 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;