From bc0e339169727c602b3e3939be494fa67b0e5b79 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 23 Dec 2014 01:13:25 +0000 Subject: [PATCH] command.c: Add missing items to EMPTY_STATUS_ITEMS. Without this, para_gui shows stale information when no audio file is open. Add a doxygen comment to the macro while at it. --- command.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/command.c b/command.c index 41a58eac..2e733c5c 100644 --- a/command.c +++ b/command.c @@ -439,6 +439,7 @@ static int com_version(struct command_context *cc) return sc_send_bin_buffer(&cc->scc, msg, len); } +/** These status items are cleared if no audio file is currently open. */ #define EMPTY_STATUS_ITEMS \ ITEM(PATH) \ ITEM(DIRECTORY) \ @@ -465,7 +466,11 @@ static int com_version(struct command_context *cc) ITEM(YEAR) \ ITEM(ALBUM) \ ITEM(COMMENT) \ - ITEM(AMPLIFICATION) + ITEM(MTIME) \ + ITEM(FILE_SIZE) \ + ITEM(CHUNK_TIME) \ + ITEM(NUM_CHUNKS) \ + ITEM(AMPLIFICATION) \ /** * Write a list of audio-file related status items with empty values. -- 2.39.5