diff options
author | waker <wakeroid@gmail.com> | 2012-10-01 22:45:14 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-10-01 22:45:14 +0200 |
commit | 3aaf888bfd21412425d9dbf900a72f0e6ca26b89 (patch) | |
tree | df00000f6b589dbc99fe8fbbf0eb3125996b06b4 /playlist.c | |
parent | 8f3b1661fd1372508b35de39ca1cc405f1111c0e (diff) |
fixed bug in the shuffle albums mode, which would crash the player if a current track was paused, then deleted
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3819,6 +3819,10 @@ void plt_init_shuffle_albums (playlist_t *plt, int r) { pl_lock (); playItem_t *first = plt_get_item_for_idx (plt, r, PL_MAIN); + if (!first) { + pl_unlock (); + return; + } if (first->played) { plt_reshuffle (plt, NULL, NULL); } |