playlist_state: save state when stopped

At the moment mpd doesn't store or restore the current track to/from
its state file when the daemon is stopped/started while in 'stopped'
state.  I believe the preferred behaviour would be to store and
restore the current track even when the daemon is in stopped state
when shutting down.

I made a small patch to adapt this behaviour. If you believe this is
not the preferred behaviour, maybe this should be realized as a
configuration option. I'm not sure how to do this, but made a small
comment, where one would have to put the option.
This commit is contained in:
Christopher Zimmerman
2009-06-26 09:26:12 +02:00
committed by Max Kellermann
parent fe96bdf7e6
commit a641f562f3
2 changed files with 10 additions and 5 deletions

1
NEWS
View File

@@ -6,6 +6,7 @@ ver 0.16 (20??/??/??)
* commands:
- added new "status" line with more precise "elapsed time"
* log unused/unknown block parameters
* save state when stopped
ver 0.15 (2009/06/23)