From cd9a3bae071d7dc8865555b6726a146f67b59191 Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 6 Aug 2016 06:29:55 +0200 Subject: [PATCH] [player] Fix return value in playback_start_item if source_open failed --- src/player.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index cd9bbfdb..8af7c3c7 100644 --- a/src/player.c +++ b/src/player.c @@ -2346,7 +2346,8 @@ playback_start_item(union player_arg *cmdarg, int *retval, struct queue_item *qi if (ret < 0) { playback_abort(); - return -1; + *retval = -1; + return COMMAND_END; } }