diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2005-11-27 14:50:21 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-11-27 14:50:21 +0000 |
commit | 71489347c1243518b38230bc5d86cbbaab38f3d3 (patch) | |
tree | e7376c8a4864c02c513e00ba24152bc4408c3f93 /apps/playback.c | |
parent | 887e3a1f679ed42bc42dfc37f576791bada8b3d2 (diff) |
iRiver: Removed a playlist_update_resume_info call which was called a way too
often reducing performance and increasing disk head moving.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8083 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c index 8a03f48a41..41659cbd6b 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1333,6 +1333,9 @@ void initialize_buffer_fill(void) if (filling) return ; + /* Save the current resume position once. */ + playlist_update_resume_info(audio_current_track()); + fill_bytesleft = filebuflen - filebufused; cur_ti->start_pos = ci.curpos; @@ -1793,8 +1796,6 @@ void audio_thread(void) break ; #endif case SYS_TIMEOUT: - if (playing) - playlist_update_resume_info(audio_current_track()); break; } } |