]> git.sesse.net Git - vlc/commit
Re-added the new packet allocation method in PS input, using packet caches.
authorCyril Deguet <asmax@videolan.org>
Mon, 16 Apr 2001 12:34:28 +0000 (12:34 +0000)
committerCyril Deguet <asmax@videolan.org>
Mon, 16 Apr 2001 12:34:28 +0000 (12:34 +0000)
commitadff2a8501514d36861150435134522fbef78c33
treec8ad7955b2ba2108fb27cef308f5690b7517b40c
parent6116299e395a1d8a27c1a7280749a0a7d59d0d66
Re-added the new packet allocation method in PS input, using packet caches.
With warning level 1, you can see when a packet is allocated or freed; the
goal is to never call 'malloc' nor 'free', except at the beginning of the
stream.
The size of the different caches can be adjusted in plugins/mpeg/input_ps.h.
If 'free' is called too often, it means that a cache is too small, so try
to increase its size.
include/input_ext-dec.h
plugins/mpeg/input_ps.c
plugins/mpeg/input_ps.h