mirror of https://github.com/mpv-player/mpv
ao_alsa: fix return value for volume operations with spdif
This AO pretended to support volume operations when in spdif passthrough mode, but actually did nothing. This is wrong: at least the GET operations must write their argument. Signal that volume is unsupported instead. This was probably a hack to prevent insertion of volume filters or so, but it didn't work anyway, while recovering after failed volume filter insertion does work, so this is not needed at all.
This commit is contained in:
parent
d842b017e4
commit
2e10f536db
|
@ -101,7 +101,7 @@ static int control(struct ao *ao, enum aocontrol cmd, void *arg)
|
||||||
float f_multi;
|
float f_multi;
|
||||||
|
|
||||||
if (AF_FORMAT_IS_IEC61937(ao->format))
|
if (AF_FORMAT_IS_IEC61937(ao->format))
|
||||||
return CONTROL_TRUE;
|
return CONTROL_FALSE;
|
||||||
|
|
||||||
//allocate simple id
|
//allocate simple id
|
||||||
snd_mixer_selem_id_alloca(&sid);
|
snd_mixer_selem_id_alloca(&sid);
|
||||||
|
|
Loading…
Reference in New Issue