add song buffer to prevent duplication

This commit is contained in:
2025-07-03 19:13:21 -04:00
parent e74b4b900d
commit 101ebe171f
2 changed files with 7 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ struct mpd_ws_server {
struct mpd_connection *mpd_conn;
struct client_session *clients;
char current_song[MAX_MESSAGE_SIZE];
char previous_song[MAX_MESSAGE_SIZE];
volatile int running;
int mpd_idle_active;
};