# HG changeset patch # User ulion # Date 1198150613 0 # Node ID 959fca775f43b67a3e9071f5bcc37fd12b03cd83 # Parent acaa10e43c526799753a20e52f69f6b708da5d98 Fix stream_cache to use sector_size set in stream_t. diff -r acaa10e43c52 -r 959fca775f43 stream/cache2.c --- a/stream/cache2.c Thu Dec 20 11:21:02 2007 +0000 +++ b/stream/cache2.c Thu Dec 20 11:36:53 2007 +0000 @@ -250,7 +250,7 @@ } 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) {