wavparse: simplify and correct header scanning
authorStefan Sauer <ensonic@users.sf.net>
Wed, 4 May 2016 05:59:27 +0000 (22:59 -0700)
committerStefan Sauer <ensonic@users.sf.net>
Wed, 4 May 2016 06:03:14 +0000 (23:03 -0700)
commit36597cf201cf3c035333f4d0c09aa32f83fb02f7
tree942bc9682da13f533e0f5f61579564bc5ccd4b16
parent1face2a66216b40650669a3cf19097d3bc7521b1
wavparse: simplify and correct header scanning

The wav spec tells that 'fmt' (and 'bext' if present) must come before 'data'.
There is no requirement for 'fmt' to be first. We already had a list of chunks
to skip, but it is easier to just skip any chunk while seeking for 'fmt'.

This fixes reading files generated by ProTools.
gst/wavparse/gstwavparse.c