summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-20 16:26:10 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-20 16:26:10 +0200
commitb1f5d9d9d2531010a5c09d447c3e541fd6874f7d (patch)
treecd083ffbb0573e84ea84aca69994c83ca883456b /streamer.c
parent57dec086269f741d2faf76e0359efa856b7d50dd (diff)
fix bug when trying to to previous track while standing on the 1st track, in "noloop" modes
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index ca39bc5c..0df11bfe 100644
--- a/streamer.c
+++ b/streamer.c
@@ -555,6 +555,7 @@ streamer_move_to_prevsong (void) {
if (!it) {
pl_unlock ();
+ streamer_set_nextsong (-2, 1);
return -1;
}
int r = str_get_idx_of (it);
@@ -575,6 +576,7 @@ streamer_move_to_prevsong (void) {
}
if (!it) {
pl_unlock ();
+ streamer_set_nextsong (-2, 1);
return -1;
}
int r = str_get_idx_of (it);