aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-17 20:58:09 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-17 20:58:09 +0000
commit290102fdddd3b46261ad0ad217f6ee6f08fc211b (patch)
treebde10c0889db63e065c1ace84b48a2b0773b209c /src/playlist.c
parente7151f941ce4111bcad9c983e3dd747c4f63ab6d (diff)
downloadmpd-290102fdddd3b46261ad0ad217f6ee6f08fc211b.tar.gz
mpd-290102fdddd3b46261ad0ad217f6ee6f08fc211b.tar.xz
mpd-290102fdddd3b46261ad0ad217f6ee6f08fc211b.zip
make playlist restart from current position in song when using state file
git-svn-id: https://svn.musicpd.org/mpd/trunk@269 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c
index aa9647ec7..1d30fe9cb 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -244,6 +244,8 @@ void loadPlaylistFromStateFile(FILE * fp, char * buffer, int state, int current,
}
if(state==PLAYER_STATE_PAUSE) {
playerPause(stderr);
+ }
+ if(state!=PLAYER_STATE_STOP) {
seekSongInPlaylist(stderr,playlist.length-1,
time);
}