]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
command.c: Add missing items to EMPTY_STATUS_ITEMS.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 23 Dec 2014 01:13:25 +0000 (01:13 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 11 Jan 2015 14:56:16 +0000 (15:56 +0100)
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

index 41a58eac0517e15e44c964250578173708289e60..2e733c5c6151b87eff0a9ac1c16b65ab64cbf5ad 100644 (file)
--- 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.