From edad4fc29b6da0202d6be4daf63dbcf825d85212 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Oct 2014 18:27:21 +0200 Subject: audio: change internal device listing API Now we run ao_driver->list_devs on a dummy AO instance, which will probably confuse everyone. This is done for the sake of PulseAudio. --- player/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/main.c') diff --git a/player/main.c b/player/main.c index 906e6d34bf..160b5deab3 100644 --- a/player/main.c +++ b/player/main.c @@ -232,7 +232,7 @@ static bool handle_help_options(struct MPContext *mpctx) opt_exit = 1; } if (opts->audio_device && strcmp(opts->audio_device, "help") == 0) { - ao_print_devices(log); + ao_print_devices(mpctx->global, log); opt_exit = 1; } #if HAVE_ENCODING -- cgit v1.2.3