]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
The sbuf allocation cleanups 343/head
authorJaroslav Kysela <perex@perex.cz>
Wed, 12 Mar 2014 16:05:59 +0000 (17:05 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 14 Mar 2014 20:10:51 +0000 (21:10 +0100)
commitdee579ea2ab68f14d06554f131a2a81b27b7503d
treeaf95e7763ba82f1c9d1682e1d94829316ffed4a6
parenta67811045334ce3813c17b6ff7275c329bdb411d
The sbuf allocation cleanups

This is an attempt to fix the nonoptimal memory allocations. The old
code tries to allocate new chunks based on maximum packet value, but
the streams contain mostly short chunks. Also, in some cases, we know
the fixed sbuf size, so use it.
src/input/mpegts/mpegts_service.c
src/input/mpegts/tsdemux.c
src/parsers/parsers.c
src/tvheadend.h
src/utils.c