From 9a28176d72f7c6daa0b6670a92b72a5caefc8b73 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Mon, 7 Aug 2023 23:19:28 +0200 Subject: [PATCH] Save consume and single oneshot as string Consume and single oneshot should be saved as string. closes #1853 --- src/queue/PlaylistState.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/queue/PlaylistState.cxx b/src/queue/PlaylistState.cxx index fb52b1c1b..87c045d3c 100644 --- a/src/queue/PlaylistState.cxx +++ b/src/queue/PlaylistState.cxx @@ -76,9 +76,9 @@ playlist_state_save(BufferedOutputStream &os, const struct playlist &playlist, os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_REPEAT "{}\n"), (unsigned)playlist.queue.repeat); os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_SINGLE "{}\n"), - (unsigned)playlist.queue.single); + SingleToString(playlist.queue.single)); os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CONSUME "{}\n"), - (unsigned)playlist.queue.consume); + ConsumeToString(playlist.queue.consume)); os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CROSSFADE "{}\n"), pc.GetCrossFade().count()); os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_MIXRAMPDB "{}\n"),