Mercurial > mplayer.hg
comparison stream/stream_file.c @ 32529:0624fa95a2aa
Make the file protocol read up to 64 kB 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.
author | reimar |
---|---|
date | Wed, 10 Nov 2010 17:21:28 +0000 |
parents | b14ca9b6b6d4 |
children | 77d81e27a176 |
comparison
equal
deleted
inserted
replaced
32528:488660501547 | 32529:0624fa95a2aa |
---|---|
186 | 186 |
187 stream->fd = f; | 187 stream->fd = f; |
188 stream->fill_buffer = fill_buffer; | 188 stream->fill_buffer = fill_buffer; |
189 stream->write_buffer = write_buffer; | 189 stream->write_buffer = write_buffer; |
190 stream->control = control; | 190 stream->control = control; |
191 stream->read_chunk = 64*1024; | |
191 | 192 |
192 m_struct_free(&stream_opts,opts); | 193 m_struct_free(&stream_opts,opts); |
193 return STREAM_OK; | 194 return STREAM_OK; |
194 } | 195 } |
195 | 196 |