Mercurial > mplayer.hg
changeset 32468:0c7c4ed0b7eb
Remove som irrelevant commented-out code.
author | reimar |
---|---|
date | Wed, 27 Oct 2010 17:52:45 +0000 |
parents | fbe5c829c69b |
children | 3fef2e17a03f |
files | stream/cache2.c |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/cache2.c Wed Oct 27 17:47:13 2010 +0000 +++ b/stream/cache2.c Wed Oct 27 17:52:45 2010 +0000 @@ -213,11 +213,9 @@ // 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 @@ -226,11 +224,6 @@ 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;