summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/options.rst4
-rw-r--r--audio/out/ao.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 35a8a2e9d8..aceca84d65 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -769,7 +769,9 @@ Audio
``alsa``, followed by ``/``, followed by the audio output specific device
name.
- You can list audio devices with ``--audio-device=help``.
+ You can list audio devices with ``--audio-device=help``. This outputs the
+ device name in quotes, followed by a description. The device name is what
+ you have to pass to the ``--audio-device`` option.
The default value for this option is ``auto``, which tries every audio
output in preference order with the default device.
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 0b722eb57a..0873b18e68 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -439,7 +439,7 @@ void ao_print_devices(struct mpv_global *global, struct mp_log *log)
mp_info(log, "List of detected audio devices:\n");
for (int n = 0; n < list->num_devices; n++) {
struct ao_device_desc *desc = &list->devices[n];
- mp_info(log, " %s (%s)\n", desc->name, desc->desc);
+ mp_info(log, " '%s' (%s)\n", desc->name, desc->desc);
}
talloc_free(list);
}