flacparse: Request at least the full header size when parsing headers
authorSebastian Dröge <sebastian@centricular.com>
Fri, 24 Nov 2017 08:36:01 +0000 (10:36 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 29 Nov 2017 15:28:25 +0000 (17:28 +0200)
commitb02350bd62e0eb59ee263af731e23195427268c6
tree1dcb85062ccb9220833f6436d445e23a7eaf8d70
parenta31581064013e729ae03f33c086cadb8919e17ab
flacparse: Request at least the full header size when parsing headers

Otherwise baseparse will incrementally send us bigger buffers until the
full header size is reached, which is not only pointless but also means
that baseparse will reallocate and copy into a bigger buffer for every
input buffers. In pull mode that's done in 64kb increments, in push mode
usually in much smaller increments, causing a lot of overhead for
example when parsing high-quality coverart.
gst/audioparsers/gstflacparse.c