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
					Thomas Jansen
				
			
				
					committed by
					
						 Max Kellermann
						Max Kellermann
					
				
			
			
				
	
			
			
			 Max Kellermann
						Max Kellermann
					
				
			
						parent
						
							9423b456a1
						
					
				
				
					commit
					9fa3d7c4fa
				
			| @@ -59,7 +59,7 @@ playlist_state_save(FILE *fp, const struct playlist *playlist) | |||||||
|  |  | ||||||
| 	pc_get_status(&player_status); | 	pc_get_status(&player_status); | ||||||
|  |  | ||||||
| 	fputs(PLAYLIST_STATE_FILE_STATE "\n", fp); | 	fputs(PLAYLIST_STATE_FILE_STATE, fp); | ||||||
|  |  | ||||||
| 	if (playlist->playing) { | 	if (playlist->playing) { | ||||||
| 		switch (player_status.state) { | 		switch (player_status.state) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user