OTher part of previous

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15450 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2007-11-04 05:36:35 +00:00
parent e8fa7f94b0
commit f906498786

View file

@ -1029,7 +1029,7 @@ static void set_filebuf_watermark(int seconds, size_t max)
if (!filebuf) if (!filebuf)
return; /* Audio buffers not yet set up */ return; /* Audio buffers not yet set up */
bytes = MAX(curtrack_id3.bitrate * seconds * (1000/8), max); bytes = seconds?MAX(curtrack_id3.bitrate * seconds * (1000/8), max):max;
bytes = MIN(bytes, filebuflen / 2); bytes = MIN(bytes, filebuflen / 2);
buf_set_conf(BUFFERING_SET_WATERMARK, bytes); buf_set_conf(BUFFERING_SET_WATERMARK, bytes);
} }