OTher part of previous
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15450 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e8fa7f94b0
commit
f906498786
1 changed files with 1 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ static void set_filebuf_watermark(int seconds, size_t max)
|
|||
if (!filebuf)
|
||||
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);
|
||||
buf_set_conf(BUFFERING_SET_WATERMARK, bytes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue