aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 2557e86a4..14ba2c300 100644
--- a/src/command.c
+++ b/src/command.c
@@ -399,15 +399,16 @@ static int commandStatus(struct client *client,
COMMAND_STATUS_SONGID ": %i\n",
song, getPlaylistSongId(song));
}
+
if (getPlayerState() != PLAYER_STATE_STOP) {
+ const struct audio_format *af = player_get_audio_format();
client_printf(client,
COMMAND_STATUS_TIME ": %i:%i\n"
COMMAND_STATUS_BITRATE ": %li\n"
COMMAND_STATUS_AUDIO ": %u:%u:%u\n",
getPlayerElapsedTime(), getPlayerTotalTime(),
getPlayerBitRate(),
- getPlayerSampleRate(), getPlayerBits(),
- getPlayerChannels());
+ af->sample_rate, af->bits, af->channels);
}
if ((updateJobId = isUpdatingDB())) {