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:
Thomas Jansen 2010-09-22 22:24:04 +02:00 committed by Max Kellermann
parent 9423b456a1
commit 9fa3d7c4fa
1 changed files with 1 additions and 1 deletions

View File

@ -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) {