[vlc-devel] commit: stream: Add a new method for buffering access: A*Immediate method. (Pierre d'Herbemont )
git version control
git at videolan.org
Thu Jun 5 19:17:13 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Fri May 23 13:28:36 2008 +0200| [5df2e973d079c0a43572cb9b248d226911b4cfbc]
stream: Add a new method for buffering access: A*Immediate method.
It is much more efficient regarding latency as it doesn't bufferize more than needed, and let the module access take care of that eventually.
Enable with --use-stream-immediate. We may want to default it.
Note: --use-stream-immediate will be only effective on access that don't provide pf_block() for now. This is because I didn't benchmark against the Block method.
Here the gain that I did measure is about 200ms (less latency) when using the http access on a loopback.
src/input/stream.c | 226 ++++++++++++++++++++++++++++++++++++++++++++++++---
src/libvlc-module.c | 9 ++
2 files changed, 224 insertions(+), 11 deletions(-)
More information about the vlc-devel