summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-09 21:21:31 +0200
committerwm4 <wm4@nowhere>2014-10-09 21:21:31 +0200
commit35649a990a5d468b6e9539c9e362d1e5a351c9c4 (patch)
tree31b1f76c5c219cfeaa0360c09122bfc45c4b90b7 /player
parent89890192711e1478e7626df6f8eb2a7ecb117342 (diff)
downloadmpv-35649a990a5d468b6e9539c9e362d1e5a351c9c4.tar.bz2
mpv-35649a990a5d468b6e9539c9e362d1e5a351c9c4.tar.xz
audio: add device selection & listing with --audio-device
Not sure how good of an idea this is. This commit doesn't add support for this to any AO yet; the AO implementations will follow later.
Diffstat (limited to 'player')
-rw-r--r--player/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index af1d3427dc..bf14b25340 100644
--- a/player/main.c
+++ b/player/main.c
@@ -229,6 +229,10 @@ static bool handle_help_options(struct MPContext *mpctx)
MP_INFO(mpctx, "\n");
opt_exit = 1;
}
+ if (opts->audio_device && strcmp(opts->audio_device, "help") == 0) {
+ ao_print_devices(log);
+ opt_exit = 1;
+ }
#if HAVE_ENCODING
if (encode_lavc_showhelp(log, opts->encode_opts))
opt_exit = 1;