vorbisdec: Always handle in-band header packets once the first non-header packet...
authorSebastian Dröge <sebastian@centricular.com>
Thu, 16 Aug 2018 16:37:33 +0000 (19:37 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 28 Aug 2018 14:47:09 +0000 (17:47 +0300)
commit0619168e2a242e468b07bd475675ea9ad8cbd31a
tree66f8b190c6125af56b6db5a69ed3295c4add4fa6
parent12236671c787f835a74f1dce3c7d0c388deff32c
vorbisdec: Always handle in-band header packets once the first non-header packet arrives

And clean up any old pending headers if we receive a new identification
header, or if we receive a new set of headers via caps.

Otherwise it might happen that we receive one or more header but not
all, and then afterwards all headers again, and libvorbis does not like
getting headers passed multiple times and would error out.

It only makes sense to pass the very latest headers to the decoder at
the time we can actually make use of them.

https://bugzilla.gnome.org/show_bug.cgi?id=796980
ext/vorbis/gstvorbisdec.c