playlist_state: Fix the "state" line in the output
An '\n' was erroneously inserted in the line containing the state, e.g. "state: \nplay" instead of "state: play". Fix for bug #2992.
This commit is contained in:
parent
9423b456a1
commit
9fa3d7c4fa
|
@ -59,7 +59,7 @@ playlist_state_save(FILE *fp, const struct playlist *playlist)
|
|||
|
||||
pc_get_status(&player_status);
|
||||
|
||||
fputs(PLAYLIST_STATE_FILE_STATE "\n", fp);
|
||||
fputs(PLAYLIST_STATE_FILE_STATE, fp);
|
||||
|
||||
if (playlist->playing) {
|
||||
switch (player_status.state) {
|
||||
|
|
Loading…
Reference in New Issue