From: Not Zed Date: Thu, 25 May 2023 23:40:07 +0000 (+0930) Subject: Reset the list sequence index if we can't find the next track. X-Git-Url: https://code.zedzone.au/cvs?a=commitdiff_plain;h=7c133e90871cdb6a1d4ac77aa83697d5b9fe06e0;p=playerz Reset the list sequence index if we can't find the next track. --- 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);