From 0646cea12690900ed7bcf5dbdcfb5a058a202cba Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 5 Jul 2021 01:25:54 +0200 Subject: Silence a compiler warning The statement can be eliminated, then it suggests braces. --- nncmpp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nncmpp.c b/nncmpp.c index 2902757..61c109f 100644 --- a/nncmpp.c +++ b/nncmpp.c @@ -3938,9 +3938,10 @@ mpd_update_playback_state (void) if (!strcmp (state, "play")) g.state = PLAYER_PLAYING; if (!strcmp (state, "pause")) g.state = PLAYER_PAUSED; } - if (g.state == PLAYER_STOPPED) + { spectrum_clear (); + } // Values in "time" are always rounded. "elapsed", introduced in MPD 0.16, // is in millisecond precision and "duration" as well, starting with 0.20. -- cgit v1.2.3-70-g09d2