[player] Fix return value in volume_setrel_speaker if device is not
selected
This commit is contained in:
parent
2ae94e8f82
commit
30d43bef4f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue