From 30d43bef4f2ff4de7a21f18641db25720a3f2e0b Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 6 Aug 2016 06:34:34 +0200 Subject: [PATCH] [player] Fix return value in volume_setrel_speaker if device is not selected --- src/player.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index cbca4d90..63fcd757 100644 --- a/src/player.c +++ b/src/player.c @@ -2938,7 +2938,10 @@ volume_setrel_speaker(void *arg, int *retval) continue; if (!device->selected) - return 0; + { + *retval = 0; + return COMMAND_END; + } device->relvol = relvol; device->volume = rel_to_vol(relvol);