From 7c133e90871cdb6a1d4ac77aa83697d5b9fe06e0 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 26 May 2023 09:10:07 +0930 Subject: [PATCH] Reset the list sequence index if we can't find the next track. --- music-player.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/music-player.c b/music-player.c index 0d7fc78..d4429ec 100644 --- a/music-player.c +++ b/music-player.c @@ -813,7 +813,8 @@ int audio_restore_state(struct audio_player *ap) { res = -1; printf("unable to restore state\n"); // ?? - //ap->playing_state.listid = 1; + ap->playing_state.listid = 1; + ap->playing_state.seq = 0; } dbindex_commit(tx); -- 2.39.5