diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-07-22 21:26:04 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-07-22 21:26:04 +0200 |
commit | b98dc0a74de51870977cbb74657b563e5daeba46 (patch) | |
tree | 1adfa032dcc8eded0c7ca9196235427cba79ad68 /main.c | |
parent | eafb2643cc8494efb021a28bcdac37d815386ee5 (diff) |
plt_init_shuffle_albums cleanup
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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 (); } |