[MPlayer-cvslog] r25473 - trunk/stream/cache2.c
ulion
subversion at mplayerhq.hu
Thu Dec 20 12:36:53 CET 2007
Author: ulion
Date: Thu Dec 20 12:36:53 2007
New Revision: 25473
Log:
Fix stream_cache to use sector_size set in stream_t.
Modified:
trunk/stream/cache2.c
Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c (original)
+++ trunk/stream/cache2.c Thu Dec 20 12:36:53 2007
@@ -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) {
More information about the MPlayer-cvslog
mailing list