projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa4c29c
)
wavparse: fix which stop variable is used in assignment
author
Luis de Bethencourt
<luis.bg@samsung.com>
Fri, 6 Feb 2015 14:43:22 +0000
(14:43 +0000)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Fri, 6 Feb 2015 14:46:14 +0000
(14:46 +0000)
Assignment is done to variable segment.stop when the intention was to assign to
local variable stop. Instead of overwriting it, the value is now clamped and
segment.stop is set to it soon after.
CID #1265773
gst/wavparse/gstwavparse.c
patch
|
blob
|
history
diff --git
a/gst/wavparse/gstwavparse.c
b/gst/wavparse/gstwavparse.c
index
2f5698b
..
41d5151
100644
(file)
--- a/
gst/wavparse/gstwavparse.c
+++ b/
gst/wavparse/gstwavparse.c
@@
-2348,8
+2348,8
@@
gst_wavparse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
}
if (stop > 0) {
end_offset = stop;
- s
egment.s
top -= wav->datastart;
- s
egment.s
top = MAX (stop, 0);
+ stop -= wav->datastart;
+ stop = MAX (stop, 0);
}
if (wav->segment.format == GST_FORMAT_TIME) {
guint64 bps = wav->bps;