mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 16:48:22 -04:00
[mpd] Fix initial value of 'songpos' in play command
This commit is contained in:
parent
743edcc3dd
commit
d88182820c
@ -1363,7 +1363,7 @@ mpd_command_play(struct evbuffer *evbuf, int argc, char **argv, char **errmsg, s
|
|||||||
struct db_queue_item *queue_item;
|
struct db_queue_item *queue_item;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
songpos = 0;
|
songpos = -1;
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
{
|
{
|
||||||
ret = safe_atoi32(argv[1], &songpos);
|
ret = safe_atoi32(argv[1], &songpos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user