mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
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
This commit is contained in:
parent
21168dd199
commit
d48e57538d
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue