summaryrefslogtreecommitdiff
path: root/apps/gui/gwps.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-03-27 13:57:56 +0000
committerThomas Martitz <kugel@rockbox.org>2009-03-27 13:57:56 +0000
commit8d5982110b1e2f8507d225b37928ecb96439d974 (patch)
tree9dd0dc8735fed89b28abd5ee2fe42e4383a2533c /apps/gui/gwps.c
parent62f3e95945187a744043b5b0c7e393786843c9c8 (diff)
downloadrockbox-8d5982110b1e2f8507d225b37928ecb96439d974.tar.gz
rockbox-8d5982110b1e2f8507d225b37928ecb96439d974.zip
Fix hwcodec to actually check for prevent_skip
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20554 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r--apps/gui/gwps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index d211321622..dd219f166f 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -135,15 +135,15 @@ static void play_hop(int direction)
135 135
136 if (direction == 1 && wps_state.id3->length - *elapsed < step+1000) 136 if (direction == 1 && wps_state.id3->length - *elapsed < step+1000)
137 { 137 {
138 if (!prevent_skip)
139 next_track();
138#if CONFIG_CODEC == SWCODEC 140#if CONFIG_CODEC == SWCODEC
139 if (prevent_skip) 141 else
140 { 142 {
141 if(global_settings.beep) 143 if(global_settings.beep)
142 pcmbuf_beep(1000, 150, 1500*global_settings.beep); 144 pcmbuf_beep(1000, 150, 1500*global_settings.beep);
143 } 145 }
144 else
145#endif 146#endif
146 next_track();
147 return; 147 return;
148 } 148 }
149 else if ((direction == -1 && *elapsed < step)) 149 else if ((direction == -1 && *elapsed < step))