summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-02-06 14:43:22 +0000
committerLuis de Bethencourt <luis.bg@samsung.com>2015-02-06 14:46:14 +0000
commiteb975ce88069fad7cad7657a846268b5305f239e (patch)
tree034ca0a02762211cc5a2dcf7f939de3c12100d12
parentaa4c29c5d62885adf65f56690fcbcd62375cc24a (diff)
wavparse: fix which stop variable is used in assignment
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
-rw-r--r--gst/wavparse/gstwavparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index 2f5698b64..41d515154 100644
--- 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;
- segment.stop -= wav->datastart;
- segment.stop = MAX (stop, 0);
+ stop -= wav->datastart;
+ stop = MAX (stop, 0);
}
if (wav->segment.format == GST_FORMAT_TIME) {
guint64 bps = wav->bps;