diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-20 04:47:15 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-20 04:47:15 +0000 |
commit | 426889778db0c32dcc0df928023f9a6075378207 (patch) | |
tree | 070118f829ecde54c9b4b299489d8c183e600e90 | |
parent | 1b1d79d22a9513f796f0f5e80c01ab47ab482138 (diff) | |
download | mpd-426889778db0c32dcc0df928023f9a6075378207.tar.gz mpd-426889778db0c32dcc0df928023f9a6075378207.tar.xz mpd-426889778db0c32dcc0df928023f9a6075378207.zip |
when playing a url, previous always goto to previous song and never to the
beginning of the stream!
git-svn-id: https://svn.musicpd.org/mpd/trunk@1110 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | src/playlist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c index 60b40f4f9..8d145c314 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -954,7 +954,10 @@ int previousSongInPlaylist(FILE * fp) { syncPlaylistWithQueue(0); - if (getPlayerElapsedTime()>PLAYLIST_PREV_UNLESS_ELAPSED) { + if (getPlayerElapsedTime()>PLAYLIST_PREV_UNLESS_ELAPSED && + playlist.songs[playlist.order[playlist.current]]->type + != SONG_TYPE_URL) + { return playPlaylistOrderNumber(fp,playlist.current); } else { |