From: Max Kellermann Date: Wed, 30 Sep 2009 19:05:45 +0000 (+0200) Subject: screen_play: query status.id instead of song.id X-Git-Tag: release-0.16~257 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=805524612e853ffc306fee32b0ea3463bb64dc3c;p=ncmpc.git screen_play: query status.id instead of song.id --- diff --git a/src/screen_play.c b/src/screen_play.c index 08c1ce3..0f31032 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -568,9 +568,9 @@ play_update(struct mpdclient *c) if (c->events & MPD_IDLE_PLAYLIST) playlist_restore_selection(); - current_song_id = c->song != NULL && c->status != NULL && + current_song_id = c->status != NULL && !IS_STOPPED(mpd_status_get_state(c->status)) - ? (int)mpd_song_get_id(c->song) : -1; + ? (int)mpd_status_get_song_id(c->status) : -1; if (current_song_id != prev_song_id) { prev_song_id = current_song_id;