mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[mpd] Do not treat playback_start return value > 0 as an error
This commit is contained in:
parent
3981c67e3a
commit
39314c1560
@ -1122,7 +1122,7 @@ mpd_command_pause(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
||||
else
|
||||
ret = player_playback_start(NULL);
|
||||
|
||||
if (ret != 0)
|
||||
if (ret < 0)
|
||||
{
|
||||
ret = asprintf(errmsg, "Failed to pause playback");
|
||||
if (ret < 0)
|
||||
@ -1177,7 +1177,7 @@ mpd_command_play(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
||||
else
|
||||
ret = player_playback_start(NULL);
|
||||
|
||||
if (ret != 0)
|
||||
if (ret < 0)
|
||||
{
|
||||
ret = asprintf(errmsg, "Failed to start playback");
|
||||
if (ret < 0)
|
||||
@ -1227,7 +1227,7 @@ mpd_command_playid(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
||||
else
|
||||
ret = player_playback_start(NULL);
|
||||
|
||||
if (ret != 0)
|
||||
if (ret < 0)
|
||||
{
|
||||
ret = asprintf(errmsg, "Failed to start playback");
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user