summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-22 21:26:04 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-22 21:26:04 +0200
commitb98dc0a74de51870977cbb74657b563e5daeba46 (patch)
tree1adfa032dcc8eded0c7ca9196235427cba79ad68 /main.c
parenteafb2643cc8494efb021a28bcdac37d815386ee5 (diff)
plt_init_shuffle_albums cleanup
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/main.c b/main.c
index 8c67d9d8..5500b728 100644
--- a/main.c
+++ b/main.c
@@ -576,12 +576,6 @@ player_mainloop (void) {
case DB_EV_PLAY_NUM:
pl_playqueue_clear ();
streamer_set_nextsong (p1, 4);
- 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);
@@ -680,13 +674,6 @@ 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 ();
}