cache: call stream read with at least sector size space
commita37b71dc329b4cfc828db9c166c94d1221f2d46c
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 26 Mar 2011 20:04:47 +0000 (26 20:04 +0000)
committerUoti Urpala <uau@mplayer2.org>
Sun, 1 May 2011 13:29:57 +0000 (1 16:29 +0300)
treecaf12113660e1dca43a4b15aac9e71a9cd278bed
parent211e93aeec5864a4cef2568703bbdd9dca171280
cache: call stream read with at least sector size space

Ensure we always pass a buffer of at least sector size to the read
function. This is never an issue with streams that have actual
sectors, as the reads will always return a multiple of sector size and
the cache is always used in blocks of sector size. However the rtp
protocol misuses this so it can just assume it always has a
sufficiently large buffer available and thus fails without this extra
hack.

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