diff options
author | 2010-01-02 15:16:07 +0100 | |
---|---|---|
committer | 2010-01-02 15:16:07 +0100 | |
commit | a63eff31169b700c1e3384f745eae5c26618ed45 (patch) | |
tree | c662e863e8261efb84d89ba9ac07341b11742246 /streamer.c | |
parent | 044a715c61f1b78cb569fd7711d794296b61b994 (diff) |
few tweaks to playqueue
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -943,7 +943,18 @@ streamer_play_current_track (void) { else if (playlist_current_row[PL_MAIN] != -1) { // play currently selected track p_stop (); - streamer_set_nextsong (playlist_current_row[PL_MAIN], 1); + // get next song in queue + int idx = -1; + playItem_t *next = pl_playqueue_getnext (); + if (next) { + idx = pl_get_idx_of (next); + pl_playqueue_pop (); + } + else { + idx = playlist_current_row[PL_MAIN]; + } + + streamer_set_nextsong (idx, 1); } else { // restart currently playing track |