Silence a compiler warning

The statement can be eliminated, then it suggests braces.
This commit is contained in:
Přemysl Eric Janouch 2021-07-05 01:25:54 +02:00
parent a439a56ee9
commit 0646cea126
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

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