mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
This commit is contained in:
parent
aa4c29c5d6
commit
eb975ce880
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue