summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-10 19:45:25 +0200
committerwm4 <wm4@nowhere>2014-10-10 19:45:25 +0200
commit04a5d25bf792ca083e9a3956b2298e6e4dbe90cc (patch)
tree5d76952f6f58dbb7f936246bc1d554351c852849 /audio/out
parent8417d86ce6ae8e6eacf613642e0c429e7617f330 (diff)
downloadmpv-04a5d25bf792ca083e9a3956b2298e6e4dbe90cc.tar.bz2
mpv-04a5d25bf792ca083e9a3956b2298e6e4dbe90cc.tar.xz
audio: don't list encoder AO with --audio-device=help
Diffstat (limited to 'audio/out')
-rw-r--r--audio/out/ao.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 5f85f516f5..67691b5f4d 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -404,6 +404,8 @@ struct ao_device_list *ao_get_device_list(struct mpv_global *global)
struct ao_device_list *list = talloc_zero(NULL, struct ao_device_list);
for (int n = 0; audio_out_drivers[n]; n++) {
const struct ao_driver *d = audio_out_drivers[n];
+ if (d->encode)
+ continue;
struct ao *ao = ao_alloc(true, global, NULL, (char *)d->name, NULL);
if (!ao)
continue;