mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
cosmetics: cache2.c: Remove some irrelevant commented-out code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32555 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
00f82c63b0
commit
c6fb4e2aa2
@ -212,11 +212,9 @@ static int cache_fill(cache_vars_t *s)
|
||||
// reduce space if needed:
|
||||
if(space>s->buffer_size-pos) space=s->buffer_size-pos;
|
||||
|
||||
// if(space>32768) space=32768; // limit one-time block size
|
||||
// limit one-time block size
|
||||
if(space>4*s->sector_size) space=4*s->sector_size;
|
||||
|
||||
// if(s->seek_lock) return 0; // FIXME
|
||||
|
||||
#if 1
|
||||
// back+newb+space <= buffer_size
|
||||
back2=s->buffer_size-(space+newb); // max back size
|
||||
@ -225,11 +223,6 @@ static int cache_fill(cache_vars_t *s)
|
||||
s->min_filepos=read-back; // avoid seeking-back to temp area...
|
||||
#endif
|
||||
|
||||
// ....
|
||||
//printf("Buffer fill: %d bytes of %d\n",space,s->buffer_size);
|
||||
//len=stream_fill_buffer(s->stream);
|
||||
//memcpy(&s->buffer[pos],s->stream->buffer,len); // avoid this extra copy!
|
||||
// ....
|
||||
len=stream_read(s->stream,&s->buffer[pos],space);
|
||||
s->eof= !len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user