From 4329eb94c148cb7c0dca339172b3ed46c1641291 Mon Sep 17 00:00:00 2001 From: waker Date: Thu, 13 Sep 2012 18:39:40 +0200 Subject: fixed resuming in shuffle-albums mode --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 228e3ecb..466126df 100644 --- a/main.c +++ b/main.c @@ -676,6 +676,13 @@ restore_resume_state (void) { streamer_lock (); // need to hold streamer thread to make the resume operation atomic streamer_set_current_playlist (plt); streamer_set_nextsong (track, paused ? 2 : 3); + if (pl_get_order () == PLAYBACK_ORDER_SHUFFLE_ALBUMS) { + playlist_t *p = plt_get_for_idx (plt); + if (p) { + plt_init_shuffle_albums (p, track); + plt_unref (p); + } + } streamer_set_seek (pos); streamer_unlock (); } -- cgit v1.2.3