From c82b79fa88de291932248d3320b9bec7fb36b98c Mon Sep 17 00:00:00 2001 From: Jeffrey Middleton Date: Wed, 28 Oct 2009 15:34:45 -0500 Subject: [PATCH] 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) --- src/screen_song.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.30.2