[Mplayer-cvslog] CVS: main mplayer.c,1.297,1.298 cfg-mplayer.h,1.89,1.90
Arpi of Ize
arpi at mplayer.dev.hu
Sun Oct 21 14:43:02 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv30363
Modified Files:
mplayer.c cfg-mplayer.h
Log Message:
-cache option to enable cache and set buffer size
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.297
retrieving revision 1.298
diff -u -r1.297 -r1.298
--- mplayer.c 20 Oct 2001 23:48:56 -0000 1.297
+++ mplayer.c 21 Oct 2001 12:42:59 -0000 1.298
@@ -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,"-"));
Index: cfg-mplayer.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -r1.89 -r1.90
--- cfg-mplayer.h 20 Oct 2001 22:29:15 -0000 1.89
+++ cfg-mplayer.h 21 Oct 2001 12:42:59 -0000 1.90
@@ -198,6 +198,11 @@
{"vc", &video_codec, CONF_TYPE_STRING, 0, 0, 0},
{"dshow", &allow_dshow, CONF_TYPE_FLAG, 0, 0, 1}, // Is this still needed? atmos ::
{"nodshow", &allow_dshow, CONF_TYPE_FLAG, 0, 1, 0},
+#ifdef USE_STREAM_CACHE
+ {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 4, 65536},
+#else
+ {"cache", "MPlayer was compiled WITHOUT cache2 support", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
+#endif
{"vcd", &vcd_track, CONF_TYPE_INT, CONF_RANGE, 1, 99},
#ifdef USE_DVDREAD
{"dvd", &dvd_title, CONF_TYPE_INT, CONF_RANGE, 1, 99},
More information about the MPlayer-cvslog
mailing list