diff options
author | wm4 <wm4@nowhere> | 2014-03-10 01:18:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-11 00:21:45 +0100 |
commit | 5f788a7812185cf69cc29e2fe6e5dcf27c0165f4 (patch) | |
tree | 3f168f8d6eb5266c4c46f95ca08528bdfefd64bc | |
parent | dba25e13c08a02a3734ce7891dc1652826ce15b1 (diff) | |
download | mpv-5f788a7812185cf69cc29e2fe6e5dcf27c0165f4.tar.bz2 mpv-5f788a7812185cf69cc29e2fe6e5dcf27c0165f4.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 08ddac75ea..d98bc861b8 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -100,7 +100,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); |