changeset 25445:959fca775f43

Fix stream_cache to use sector_size set in stream_t.
author ulion
date Thu, 20 Dec 2007 11:36:53 +0000
parents acaa10e43c52
children 8dfc8a3b4152
files stream/cache2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {