mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 14:13:18 -05:00
[player] Add log messages in case playback_start_item returns -1
This commit is contained in:
parent
9d8dbaffe1
commit
4e4e91d4a2
@ -1929,6 +1929,8 @@ playback_start_item(void *arg, int *retval)
|
||||
|
||||
if (player_state == PLAY_PLAYING)
|
||||
{
|
||||
DPRINTF(E_DBG, L_PLAYER, "Player is already playing, ignoring call to playback start\n");
|
||||
|
||||
status_update(player_state);
|
||||
|
||||
*retval = 1; // Value greater 0 will prevent execution of the bottom half function
|
||||
@ -1940,6 +1942,8 @@ playback_start_item(void *arg, int *retval)
|
||||
|
||||
if (player_state == PLAY_STOPPED && !queue_item)
|
||||
{
|
||||
DPRINTF(E_LOG, L_PLAYER, "Failed to start/resume playback, no queue item given\n");
|
||||
|
||||
*retval = -1;
|
||||
return COMMAND_END;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user