From 350944cddde1aac68b108f20e4e2c106aef69fff Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 1 Nov 2015 12:03:25 +0100 Subject: [PATCH] [mpd] fix seekid command Seeking with the seekid command for the currently playing item got broken after introducing the item-id (comparison of item-id passed from client to db-id) --- src/mpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpd.c b/src/mpd.c index d0ae4e6c..8d1d249b 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -1407,7 +1407,7 @@ mpd_command_seekid(struct evbuffer *evbuf, int argc, char **argv, char **errmsg) //TODO Allow seeking in songs not currently playing player_get_status(&status); - if (status.id != id) + if (status.item_id != id) { ret = asprintf(errmsg, "Given song is not the current playing one, seeking is not supported"); if (ret < 0)