From 4e4e91d4a24a1ba26cf55a05885f7a89992159bb Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 4 Feb 2017 06:05:40 +0100 Subject: [PATCH] [player] Add log messages in case playback_start_item returns -1 --- src/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/player.c b/src/player.c index 129210ed..1208ff46 100644 --- a/src/player.c +++ b/src/player.c @@ -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; }