diff options
-rw-r--r-- | apps/gui/gwps-common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 0ec0f6490c..2e0afab1ee 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -824,7 +824,15 @@ static char *get_token_value(struct gui_wps *gwps, | |||
824 | return playlist_name(NULL, buf, buf_size); | 824 | return playlist_name(NULL, buf, buf_size); |
825 | 825 | ||
826 | case WPS_TOKEN_PLAYLIST_POSITION: | 826 | case WPS_TOKEN_PLAYLIST_POSITION: |
827 | #if CONFIG_CODEC == SWCODEC | ||
827 | snprintf(buf, buf_size, "%d", id3->index + 1); | 828 | snprintf(buf, buf_size, "%d", id3->index + 1); |
829 | #else | ||
830 | /* On HWCODEC, using id3->index doesn't work when shuffle is | ||
831 | * enabled, so we get the playlist index directly. To use | ||
832 | * id3->index, something like what was added in r3726 would be | ||
833 | * required. */ | ||
834 | snprintf(buf, buf_size, "%d", playlist_get_display_index()); | ||
835 | #endif | ||
828 | return buf; | 836 | return buf; |
829 | 837 | ||
830 | case WPS_TOKEN_PLAYLIST_SHUFFLE: | 838 | case WPS_TOKEN_PLAYLIST_SHUFFLE: |