summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-30 18:55:39 +0100
committerwm4 <wm4@nowhere>2013-11-30 18:55:39 +0100
commit557efff690c7c047466d3f9b613b1d5416ef1f70 (patch)
treef94ce80f3e22da469159161be6c1f25e7131762b
parentf388f14c01eeec551a3cdd705c9fa680048cb758 (diff)
downloadmpv-557efff690c7c047466d3f9b613b1d5416ef1f70.tar.bz2
mpv-557efff690c7c047466d3f9b613b1d5416ef1f70.tar.xz
ao_alsa: enable "plug" for non-interleaved float formats too
I have no idea what this code does, but it seems logical it should be active for all float formats, not just for float with interleaved access.
-rw-r--r--audio/out/ao_alsa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 2d256c7e8d..2c6df71cd0 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -388,8 +388,7 @@ static int init(struct ao *ao)
ao->channels.num);
} else {
device = select_chmap(ao);
- if (strcmp(device, "default") != 0 && ao->format == AF_FORMAT_FLOAT)
- {
+ if (strcmp(device, "default") != 0 && (ao->format & AF_FORMAT_F)) {
// hack - use the converter plugin (why the heck?)
device = talloc_asprintf(ao, "plug:%s", device);
}