summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-04 13:50:15 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-04 13:50:15 +0200
commit3793f58d388dd1e26e6edf7bd548ed17fc588ae1 (patch)
tree78254d9da413fa1cd55a5f10a4b9274a06f27c55
parent05364c886fc6e21547b351abaf12419237b5b39d (diff)
fixed playrandom crash
-rw-r--r--streamer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index 52352668..b77a3567 100644
--- a/streamer.c
+++ b/streamer.c
@@ -491,6 +491,9 @@ streamer_move_to_prevsong (void) {
int
streamer_move_to_randomsong (void) {
+ if (!streamer_playlist) {
+ streamer_playlist = plt_get_curr_ptr ();
+ }
playlist_t *plt = streamer_playlist;
int cnt = plt->count[PL_MAIN];
if (!cnt) {