summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {