summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-01-26 12:49:45 +0000
committerLuis de Bethencourt <luis.bg@samsung.com>2015-01-26 12:49:45 +0000
commitd48e57538dc2b1b9eb89aa66cf1c924e45cc286f (patch)
treea147843c0bb32c37f34ef6bc032ebaa75962c7db
parent21168dd1996c5c668ec4e7a709a6d2991455b7c8 (diff)
downloadgstreamer-plugins-bad-d48e57538dc2b1b9eb89aa66cf1c924e45cc286f.tar.gz
aiffparse: 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 #1265772
-rw-r--r--gst/aiff/aiffparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c
index da45ce5a2..6bae23a60 100644
--- a/gst/aiff/aiffparse.c
+++ b/gst/aiff/aiffparse.c
@@ -1818,8 +1818,8 @@ gst_aiff_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
}
if (stop > 0) {
end_offset = stop;
- segment.stop -= aiff->datastart;
- segment.stop = MAX (stop, 0);
+ stop -= aiff->datastart;
+ stop = MAX (stop, 0);
}
if (aiff->state == AIFF_PARSE_DATA &&
aiff->segment.format == GST_FORMAT_TIME) {