summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-10 23:39:46 +0200
committerwm4 <wm4@nowhere>2015-09-10 23:39:46 +0200
commite9822f6012193bf00e81b38b61f3ccbf6fe25cdb (patch)
tree0ea73422574642de5f53ae1551b0e8e7a242569f
parente721660e6dd9b8785896dfd81519baa22ea6b2fb (diff)
downloadmpv-e9822f6012193bf00e81b38b61f3ccbf6fe25cdb.tar.bz2
mpv-e9822f6012193bf00e81b38b61f3ccbf6fe25cdb.tar.xz
ao_oss: use new sample format determination code
-rw-r--r--audio/out/ao_oss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c
index 32190877f6..393c9db780 100644
--- a/audio/out/ao_oss.c
+++ b/audio/out/ao_oss.c
@@ -313,7 +313,8 @@ static int reopen_device(struct ao *ao, bool allow_format_changes)
}
}
- int try_formats[] = {format, AF_FORMAT_S32, AF_FORMAT_S24, AF_FORMAT_S16, 0};
+ int try_formats[AF_FORMAT_COUNT];
+ af_get_best_sample_formats(format, try_formats);
for (int n = 0; try_formats[n]; n++) {
format = try_formats[n];
if (try_format(ao, &format))