From 0792847d4aeca71c0e61d47a9734d192506f1249 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 10 Nov 2010 17:21:28 +0000 Subject: cache: read up to 64 KiB at once from stream_file Make the file protocol read up to 64 KiB at once when the cache is used, assuming that files will generally be readable with high bandwidth. This should improve performance when playing e.g. from high-latency network shares. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32616 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/stream_file.c') diff --git a/stream/stream_file.c b/stream/stream_file.c index f506a0f644..22be803fba 100644 --- a/stream/stream_file.c +++ b/stream/stream_file.c @@ -187,6 +187,7 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) { stream->fill_buffer = fill_buffer; stream->write_buffer = write_buffer; stream->control = control; + stream->read_chunk = 64*1024; m_struct_free(&stream_opts,opts); return STREAM_OK; -- cgit v1.2.3