[player] Add log messages in case playback_start_item returns -1

This commit is contained in:
chme 2017-02-04 06:05:40 +01:00 committed by ejurgensen
parent 9d8dbaffe1
commit 4e4e91d4a2

View File

@ -1929,6 +1929,8 @@ playback_start_item(void *arg, int *retval)
if (player_state == PLAY_PLAYING) if (player_state == PLAY_PLAYING)
{ {
DPRINTF(E_DBG, L_PLAYER, "Player is already playing, ignoring call to playback start\n");
status_update(player_state); status_update(player_state);
*retval = 1; // Value greater 0 will prevent execution of the bottom half function *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) if (player_state == PLAY_STOPPED && !queue_item)
{ {
DPRINTF(E_LOG, L_PLAYER, "Failed to start/resume playback, no queue item given\n");
*retval = -1; *retval = -1;
return COMMAND_END; return COMMAND_END;
} }