diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-11 13:47:01 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-11 13:47:01 +0000 |
commit | 1c5b392080fc263db370ba1d92a581390e13fa96 (patch) | |
tree | ca87fce08775c1fd717c624ad70f9c0adf36650c /apps/playback.c | |
parent | 2f2d7d49135966bf52a360e3a94b134851b358e9 (diff) |
Fixed codec buffering problem.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6671 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/playback.c b/apps/playback.c index 35aa59e760..d27a9aae64 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -984,13 +984,13 @@ void audio_update_trackinfo(void) pcm_set_boost_mode(false); #endif } else { - buf_ridx -= ci.curpos; - codecbufused += ci.curpos; + buf_ridx -= ci.curpos + cur_ti->codecsize; + codecbufused += ci.curpos + cur_ti->codecsize; cur_ti->available = cur_ti->filesize; cur_ti = &tracks[track_ridx]; - buf_ridx -= cur_ti->filesize + cur_ti->codecsize; - codecbufused += cur_ti->filesize + cur_ti->codecsize; + buf_ridx -= cur_ti->filesize; + codecbufused += cur_ti->filesize; cur_ti->available = cur_ti->filesize; if (buf_ridx < 0) buf_ridx = codecbuflen + buf_ridx; @@ -1168,8 +1168,6 @@ void codec_thread(void) playing = false; break ; } - codecbufused -=codecsize; - // cur_ti->codecsize = 0; ci.stop_codec = false; wrap = (int)&codecbuf[codecbuflen] - (int)cur_ti->codecbuf; |