0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

audio: don't list encoder AO with --audio-device=help

This commit is contained in:
wm4 2014-10-10 19:45:25 +02:00
parent 8417d86ce6
commit 04a5d25bf7

View File

@ -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;