cache, stream: avoid extra memcpy when using cache
commitf94717cdc4dfb35ac8dc3b5d593f6e523fdd621e
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 27 Oct 2010 19:04:04 +0000 (27 19:04 +0000)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sun, 7 Nov 2010 19:46:22 +0000 (7 21:46 +0200)
tree596d9111d6cf4f35eddeef339097d06f1ec417a0
parentc6fb4e2aa2f5a16aaa35411201c600c8ae801c38
cache, stream: avoid extra memcpy when using cache

Add a stream_read_internal() function that reads directly into a given
buffer instead of the stream's internal one. Use this to read directly
into cache memory, avoiding a memcpy(). This requires also adding a
stream_seek_internal() as the normal seek function reads into the
stream's buffer.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32559 b3059339-0415-0410-9bf9-f77b7e298cf2
stream/cache2.c
stream/stream.c
stream/stream.h