From 71489347c1243518b38230bc5d86cbbaab38f3d3 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 27 Nov 2005 14:50:21 +0000 Subject: 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 --- apps/playback.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/playback.c') 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; } } -- cgit v1.2.3