diff options
author | wm4 <wm4@nowhere> | 2014-03-10 01:18:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-10 01:18:10 +0100 |
commit | 2e10f536db95648a33f0db903d86ccb58ca7ec00 (patch) | |
tree | f34501a79ca79c77cb37a692b405828f287a369f | |
parent | d842b017e41cd6c70ecb6c5dfb78b0d568448a33 (diff) | |
download | mpv-2e10f536db95648a33f0db903d86ccb58ca7ec00.tar.bz2 mpv-2e10f536db95648a33f0db903d86ccb58ca7ec00.tar.xz |
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.
-rw-r--r-- | audio/out/ao_alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index e1e3a164d3..5a62fbfa94 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -101,7 +101,7 @@ static int control(struct ao *ao, enum aocontrol cmd, void *arg) float f_multi; if (AF_FORMAT_IS_IEC61937(ao->format)) - return CONTROL_TRUE; + return CONTROL_FALSE; //allocate simple id snd_mixer_selem_id_alloca(&sid); |