summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-05 21:02:35 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-05 21:02:35 +0200
commit3feb226deadcdf3ab5cc133e6c020b5226698911 (patch)
tree2114b0edf2f9d2260dc9d64b338969496dd0377c /streamer.c
parent37ecb96115cd7281297f0c686b5b233d4e4f6ac6 (diff)
fixed bad pl_global_unlock error
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/streamer.c b/streamer.c
index a4792b25..549beaec 100644
--- a/streamer.c
+++ b/streamer.c
@@ -332,10 +332,10 @@ streamer_move_to_nextsong (int reason) {
pl_global_unlock ();
return 0;
}
- pl_global_unlock ();
int res = streamer_move_to_randomsong ();
if (res == -1) {
trace ("streamer_move_to_randomsong error\n");
+ pl_global_unlock ();
streamer_set_nextsong (-2, 1);
return -1;
}