tagdemux: accumulate buffers in adapter
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 4 Nov 2013 08:55:17 +0000 (09:55 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 6 Nov 2013 15:27:21 +0000 (16:27 +0100)
commitb55de48843b9947a36a4f966182724e918c035c2
tree3e033954f1ec777bd222e91675525676ac295bb2
parent2b9118f58c4b4c342ab63f2b639cf064788bc993
tagdemux: accumulate buffers in adapter

Accumulate buffers in an adapter instead of appending them because append causes
a lot of memcpys.
Keep track of the last tagsize and accumulate enough data before attempting to
parse more data.

This patch implements a minimal amount of changes in order to not change the
behaviour. We should really rewrite the tag handling and trimming using
the adapter API instead of merging and trimming into a buffer.
gst-libs/gst/tag/gsttagdemux.c