From: Andre Noll <maan@tuebingen.mpg.de>
Date: Tue, 23 Dec 2014 01:13:25 +0000 (+0000)
Subject: command.c: Add missing items to EMPTY_STATUS_ITEMS.
X-Git-Tag: v0.5.4~3^2~1
X-Git-Url: https://git.tue.mpg.de/?a=commitdiff_plain;h=bc0e339169727c602b3e3939be494fa67b0e5b79;p=paraslash.git

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.
---

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.