summaryrefslogtreecommitdiff
path: root/apps/iap/iap-lingo4.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/iap/iap-lingo4.c')
-rw-r--r--apps/iap/iap-lingo4.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/iap/iap-lingo4.c b/apps/iap/iap-lingo4.c
index 903cef9378..b601501b3d 100644
--- a/apps/iap/iap-lingo4.c
+++ b/apps/iap/iap-lingo4.c
@@ -109,9 +109,8 @@ static void seek_to_playlist(unsigned long index)
109 ft_play_playlist(selected_playlist, 109 ft_play_playlist(selected_playlist,
110 global_settings.playlist_catalog_dir, 110 global_settings.playlist_catalog_dir,
111 strrchr(selected_playlist, '/') + 1); 111 strrchr(selected_playlist, '/') + 1);
112
113} 112}
114 113
115static unsigned long nbr_total_playlists(void) 114static unsigned long nbr_total_playlists(void)
116{ 115{
117 DIR* dp; 116 DIR* dp;
@@ -161,7 +160,7 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf)
161 switch (cmd) 160 switch (cmd)
162 { 161 {
163 case 0x0001: /* CmdAck. See above cmd_ack() */ 162 case 0x0001: /* CmdAck. See above cmd_ack() */
164 /* 163 /*
165 * The following is the description for the Apple Firmware 164 * The following is the description for the Apple Firmware
166 * The iPod sends this telegram to acknowledge the receipt of a 165 * The iPod sends this telegram to acknowledge the receipt of a
167 * command and return the command status. The command ID field 166 * command and return the command status. The command ID field
@@ -1457,7 +1456,7 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf)
1457 case 0x05: /* Tracks */ 1456 case 0x05: /* Tracks */
1458 case 0x02: /* Artists */ 1457 case 0x02: /* Artists */
1459 case 0x03: /* Albums */ 1458 case 0x03: /* Albums */
1460 case 0x04: /* Genre */ 1459 case 0x04: /* Genre */
1461 case 0x06: /* Composer */ 1460 case 0x06: /* Composer */
1462 playlist_get_track_info(NULL, start_index + counter, 1461 playlist_get_track_info(NULL, start_index + counter,
1463 &track); 1462 &track);
@@ -2019,8 +2018,8 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf)
2019 playlist_randomise(NULL, current_tick, true); 2018 playlist_randomise(NULL, current_tick, true);
2020 } 2019 }
2021 else 2020 else
2022 { 2021 {
2023 playlist_sort(NULL, true); 2022 playlist_sort(NULL, true);
2024 } 2023 }
2025 audio_skip(index - playlist_next(0)); 2024 audio_skip(index - playlist_next(0));
2026 if (!paused) 2025 if (!paused)