mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 00:35:03 -05:00
[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:
parent
7b5c80acf4
commit
350944cddd
@ -1407,7 +1407,7 @@ mpd_command_seekid(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
|||||||
|
|
||||||
//TODO Allow seeking in songs not currently playing
|
//TODO Allow seeking in songs not currently playing
|
||||||
player_get_status(&status);
|
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");
|
ret = asprintf(errmsg, "Given song is not the current playing one, seeking is not supported");
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user