mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
Fix stream_cache to use sector_size set in stream_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25473 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
77e2ce680b
commit
278692c1bf
@ -250,7 +250,7 @@ static void exit_sighandler(int x){
|
||||
}
|
||||
|
||||
int stream_enable_cache(stream_t *stream,int size,int min,int seek_limit){
|
||||
int ss=(stream->type==STREAMTYPE_VCD)?VCD_SECTOR_DATA:STREAM_BUFFER_SIZE;
|
||||
int ss = stream->sector_size ? stream->sector_size : STREAM_BUFFER_SIZE;
|
||||
cache_vars_t* s;
|
||||
|
||||
if (stream->type==STREAMTYPE_STREAM && stream->fd < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user