From 39d9d8bab1e46c83df4a35f50d9217b6912b7097 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Thu, 7 Apr 2011 21:38:51 +0000 Subject: Fix red and yellow. Move resume_index from mp3entry to playlist_info struct. Bump codec api. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29691 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index 457553067e..632fd05d3d 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -233,15 +233,6 @@ static void audio_stop_playback(void); /**************************************/ -/** Playlist callback */ - -/* This callback is required to update the resume index in case of changing - * a playlist and pausing/resuming before the next track change. */ -void playback_set_playlist_index(int index) -{ - thistrack_id3->index = index; -} - /** Pcmbuf callbacks */ /* Between the codec and PCM track change, we need to keep updating the @@ -2216,7 +2207,7 @@ static void audio_thread(void) /* PCM track change done */ LOGFQUEUE("audio < Q_AUDIO_TRACK_CHANGED"); /* Set new playlist position for resuming. */ - thistrack_id3->index = playlist_get_index(); + playlist_update_resume_index(); if (filling != STATE_ENDING) audio_finalise_track_change(); else if (playing) -- cgit v1.2.3