diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-01-08 21:00:39 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-01-08 21:00:39 -0800 |
commit | 2c7ca50854f20af2805a85d9b3c2d9614f8662c2 (patch) | |
tree | b7360e6ff5d93022e19c97bd4da4dc14f3477052 /subsonic-android/src/github | |
parent | 8a9b2032c2ca706f37a557406428989018177e50 (diff) | |
download | dsub-2c7ca50854f20af2805a85d9b3c2d9614f8662c2.tar.gz dsub-2c7ca50854f20af2805a85d9b3c2d9614f8662c2.tar.bz2 dsub-2c7ca50854f20af2805a85d9b3c2d9614f8662c2.zip |
Way over calculating the expected file size during buffer
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 93e10c69..730c2f27 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -1127,7 +1127,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { long byteCount = Math.max(100000, bitRate * 1024 / 8 * BUFFER_LENGTH_SECONDS); // Find out how large the file should grow before resuming playback. - expectedFileSize = (position * bitRate * 1024) + byteCount; + expectedFileSize = (position * bitRate / 8) + byteCount; } @Override |