summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-20 14:36:50 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-20 14:36:50 +0200
commite428b96440c7f0bf43aae8ff47b5c3bd05c47025 (patch)
treeccf3be8e89d3ea60a9099c1b56cba0f0020ecf3c /main.c
parent4c6ee7ff8dcb31d07f4c8f012e8338a17ecbb119 (diff)
in shuffle albums mode, skip previous album tracks if user selects track manually
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
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);