From: Jeffrey Middleton Date: Wed, 28 Oct 2009 20:34:45 +0000 (-0500) Subject: screen_song: correct "is mpd playing?" logic X-Git-Tag: release-0.16~59^2~1 X-Git-Url: https://git.tokkee.org/?p=ncmpc.git;a=commitdiff_plain;h=c82b79fa88de291932248d3320b9bec7fb36b98c screen_song: correct "is mpd playing?" logic We check if mpd is playing (or paused) before displaying current song info - the logic was inverted! (!playing && !paused) --- diff --git a/src/screen_song.c b/src/screen_song.c index 4c774e8..9bb7fbf 100644 --- a/src/screen_song.c +++ b/src/screen_song.c @@ -358,8 +358,8 @@ screen_song_update(struct mpdclient *c) } if (c->song != NULL && c->status != NULL && - (mpd_status_get_state(c->status) != MPD_STATE_PLAY && - mpd_status_get_state(c->status) != MPD_STATE_PAUSE)) { + (mpd_status_get_state(c->status) == MPD_STATE_PLAY || + mpd_status_get_state(c->status) == MPD_STATE_PAUSE)) { if (current.played_song != NULL) { mpd_song_free(current.played_song); }