diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-07-04 13:50:15 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-07-04 13:50:15 +0200 |
commit | 3793f58d388dd1e26e6edf7bd548ed17fc588ae1 (patch) | |
tree | 78254d9da413fa1cd55a5f10a4b9274a06f27c55 | |
parent | 05364c886fc6e21547b351abaf12419237b5b39d (diff) |
fixed playrandom crash
-rw-r--r-- | streamer.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |