diff options
author | waker <wakeroid@gmail.com> | 2011-05-20 14:36:50 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-20 14:36:50 +0200 |
commit | e428b96440c7f0bf43aae8ff47b5c3bd05c47025 (patch) | |
tree | ccf3be8e89d3ea60a9099c1b56cba0f0020ecf3c /main.c | |
parent | 4c6ee7ff8dcb31d07f4c8f012e8338a17ecbb119 (diff) |
in shuffle albums mode, skip previous album tracks if user selects track manually
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |