Commit cd710386 authored by Max Kellermann's avatar Max Kellermann

command: don't check audio_format if not playing

Fixes valgrind warning.
parent 1894aed2
......@@ -381,7 +381,7 @@ handle_status(struct client *client,
song, playlist_get_song_id(&g_playlist, song));
}
if (player_status.state != PLAYER_STATE_STOP)
if (player_status.state != PLAYER_STATE_STOP) {
client_printf(client,
COMMAND_STATUS_TIME ": %i:%i\n"
"elapsed: %1.3f\n"
......@@ -399,6 +399,7 @@ handle_status(struct client *client,
audio_format_to_string(&player_status.audio_format,
&af_string));
}
}
if ((updateJobId = isUpdatingDB())) {
client_printf(client,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment