diff options
author | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-20 11:36:53 +0000 |
---|---|---|
committer | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-20 11:36:53 +0000 |
commit | 278692c1bf1188a538f9e952352cc2c89f3a086a (patch) | |
tree | 1615505256574174266c574193b8c5ea291fd1c0 /stream | |
parent | 77e2ce680b3f5477bd3b741d18a0f5d791bffe04 (diff) | |
download | mpv-278692c1bf1188a538f9e952352cc2c89f3a086a.tar.bz2 mpv-278692c1bf1188a538f9e952352cc2c89f3a086a.tar.xz |
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
Diffstat (limited to 'stream')
-rw-r--r-- | stream/cache2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/cache2.c b/stream/cache2.c index 65259cfb60..40f0503b2e 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -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) { |