diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/gui/gwps-common.c | 8 | ||||
| -rw-r--r-- | apps/playback.c | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 8fc1f36..5986928 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -833,15 +833,7 @@ static char *get_token_value(struct gui_wps *gwps, return playlist_name(NULL, buf, buf_size); case WPS_TOKEN_PLAYLIST_POSITION: -#if CONFIG_CODEC == SWCODEC - snprintf(buf, buf_size, "%d", id3->index + 1); -#else - /* On HWCODEC, using id3->index doesn't work when shuffle is - * enabled, so we get the playlist index directly. To use - * id3->index, something like what was added in r3726 would be - * required. */ snprintf(buf, buf_size, "%d", playlist_get_display_index()); -#endif return buf; case WPS_TOKEN_PLAYLIST_SHUFFLE: diff --git a/apps/playback.c b/apps/playback.c index 6f18b57..ef2d653 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -585,7 +585,6 @@ struct mp3entry* audio_current_track(void) strncpy(temp_id3.path, p, sizeof(temp_id3.path)-1); temp_id3.title = &temp_id3.path[0]; - temp_id3.index = playlist_get_display_index() - 1 + wps_offset; return &temp_id3; } @@ -1628,8 +1627,6 @@ static bool audio_load_track(int offset, bool start_play) { if (get_metadata(&id3, fd, trackname)) { - id3.index = playlist_get_display_index() + last_peek_offset - 1; - send_event(PLAYBACK_EVENT_TRACK_BUFFER, &id3); tracks[track_widx].id3_hid = |