projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e7aede
)
pulsesink: bps is signed int to avoid overflow
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 10 Apr 2009 10:01:27 +0000
(12:01 +0200)
committer
Wim 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
patch
|
blob
|
history
diff --git
a/ext/pulse/pulsesink.c
b/ext/pulse/pulsesink.c
index
bb0c750
..
e2bc57d
100644
(file)
--- 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;