From 805524612e853ffc306fee32b0ea3463bb64dc3c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Sep 2009 21:05:45 +0200 Subject: [PATCH] screen_play: query status.id instead of song.id --- src/screen_play.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2