From e428b96440c7f0bf43aae8ff47b5c3bd05c47025 Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 20 May 2011 14:36:50 +0200 Subject: in shuffle albums mode, skip previous album tracks if user selects track manually --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 7ac90466..b99f847f 100644 --- a/main.c +++ b/main.c @@ -440,6 +440,12 @@ player_mainloop (void) { output->stop (); pl_playqueue_clear (); streamer_set_nextsong (p1, 1); + if (pl_get_order () == PLAYBACK_ORDER_SHUFFLE_ALBUMS) { + int pl = streamer_get_current_playlist (); + playlist_t *plt = plt_get_for_idx (pl); + plt_init_shuffle_albums (plt, p1); + plt_unref (plt); + } break; case DB_EV_STOP: streamer_set_nextsong (-2, 0); -- cgit v1.2.3