diff options
author | wm4 <wm4@nowhere> | 2013-11-30 18:55:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-30 18:55:39 +0100 |
commit | 557efff690c7c047466d3f9b613b1d5416ef1f70 (patch) | |
tree | f94ce80f3e22da469159161be6c1f25e7131762b /audio/out | |
parent | f388f14c01eeec551a3cdd705c9fa680048cb758 (diff) | |
download | mpv-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.
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_alsa.c | 3 |
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); } |