[player] Fix return value in volume_setrel_speaker if device is not

selected
This commit is contained in:
chme 2016-08-06 06:34:34 +02:00
parent 2ae94e8f82
commit 30d43bef4f
1 changed files with 4 additions and 1 deletions

View File

@ -2938,7 +2938,10 @@ volume_setrel_speaker(void *arg, int *retval)
continue; continue;
if (!device->selected) if (!device->selected)
return 0; {
*retval = 0;
return COMMAND_END;
}
device->relvol = relvol; device->relvol = relvol;
device->volume = rel_to_vol(relvol); device->volume = rel_to_vol(relvol);