Mercurial > mplayer.hg
diff mplayer.c @ 2332:66b69c384a67
-cache option to enable cache and set buffer size
author | arpi |
---|---|
date | Sun, 21 Oct 2001 12:42:59 +0000 |
parents | 5413f4fc560f |
children | c8caaf8cd683 |
line wrap: on
line diff
--- a/mplayer.c Sun Oct 21 12:42:17 2001 +0000 +++ b/mplayer.c Sun Oct 21 12:42:59 2001 +0000 @@ -222,6 +222,8 @@ static char *stream_dump_name=NULL; static int stream_dump_type=0; +static int stream_cache_size=0; + extern int dvd_title; // AVI demuxer params: @@ -757,7 +759,7 @@ inited_flags|=INITED_STREAM; stream->start_pos+=seek_to_byte; - stream_enable_cache(stream,2048*1024); + if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024); use_stdin=filename && (!strcmp(filename,"-"));