summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-04-23 20:37:43 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-04-23 20:37:43 +0000
commit8ecb8582a1e7f1b0e5fd84cb14ca9b9a0992e391 (patch)
tree6816d3eeff6d22e153b900b1387c937d893a0b37
parent4142710a474df990342ac3fba2b00322635c56e9 (diff)
downloadrockbox-8ecb8582a1e7f1b0e5fd84cb14ca9b9a0992e391.tar.gz
rockbox-8ecb8582a1e7f1b0e5fd84cb14ca9b9a0992e391.tar.bz2
rockbox-8ecb8582a1e7f1b0e5fd84cb14ca9b9a0992e391.zip
Make some adjustments to when the WPS will be updated, giving faster next track and cleaner track change updates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9776 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 33d0d7a747..72f6f59169 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1640,10 +1640,9 @@ static bool audio_load_track(int offset, bool start_play)
/* Get track metadata if we don't already have it. */
if (!tracks[track_widx].taginfo_ready) {
if (get_metadata(&tracks[track_widx],current_fd,trackname,v1first)) {
- if (start_play) {
+ track_changed = true;
+ if (start_play)
playlist_update_resume_info(audio_current_track());
- track_changed = true;
- }
} else {
logf("mde:%s!",trackname);
/* Set filesize to zero to indicate no file was loaded. */
@@ -1936,7 +1935,7 @@ static void track_skip_done(bool was_manual)
if (was_manual)
{
pcmbuf_crossfade_init(true);
- codec_track_changed();
+ queue_post(&audio_queue, Q_AUDIO_TRACK_CHANGED, 0);
}
/* Automatic track change w/crossfade, if not in "Track Skip Only" mode. */
else if (pcmbuf_is_crossfade_enabled() && !pcmbuf_is_crossfade_active()