wavparse: Don't play anything after the end of the data chunk even when seeking
authorSebastian Dröge <sebastian@centricular.com>
Tue, 19 Jan 2016 12:57:03 +0000 (14:57 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 19 Jan 2016 12:57:03 +0000 (14:57 +0200)
commit7927f49ca0a70868244353a083ccd4601580dbc6
tree9fb5a4a96ec54da1d679980cf7b1d06103675b42
parent322bdf513628d7faadd9aa17fdb4adc58a28a7ff
wavparse: Don't play anything after the end of the data chunk even when seeking

Especially in push mode we would completely ignore the size of the data chunk
when not stop position is given for the seek. Instead make sure that the end
offset is at most the end of the data chunk if known.

Without this we would output anything after the data chunk, possibly causing
loud noises if the media file is followed by an INFO chunk or an ID3 tag.
gst/wavparse/gstwavparse.c