diff options
author | wm4 <wm4@nowhere> | 2014-10-10 18:27:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-10 18:27:21 +0200 |
commit | edad4fc29b6da0202d6be4daf63dbcf825d85212 (patch) | |
tree | 421f4340787c72beeaa895f0afce3433daff3638 /player/main.c | |
parent | 19d21103e564d05d830aaa6d60a3a7fa1f122dca (diff) | |
download | mpv-edad4fc29b6da0202d6be4daf63dbcf825d85212.tar.bz2 mpv-edad4fc29b6da0202d6be4daf63dbcf825d85212.tar.xz |
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.
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |