[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)
This commit is contained in:
chme 2015-11-01 12:03:25 +01:00
parent 7b5c80acf4
commit 350944cddd

View File

@ -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)