mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
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:
parent
3e7aede3ea
commit
20a6908dfd
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue