From b814b7ca84a85a6c17c4ab85ae9855afb62bc237 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 7 Nov 2014 15:54:35 +0100 Subject: audio: add --audio-client-name option The main need I see for this is with libmpv - it would be confusing if some application showed up as "mpv" on whateverthehell PulseAudio uses it for (generally it does show up on various PA GUI tools). --- options/options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index ef1a383450..c15482fd05 100644 --- a/options/options.c +++ b/options/options.c @@ -352,6 +352,7 @@ const m_option_t mp_opts[] = { OPT_SETTINGSLIST("ao", audio_driver_list, 0, &ao_obj_list), OPT_SETTINGSLIST("ao-defaults", ao_defs, 0, &ao_obj_list), OPT_STRING("audio-device", audio_device, 0), + OPT_STRING("audio-client-name", audio_client_name, 0), OPT_FLAG("fixed-vo", fixed_vo, CONF_GLOBAL), OPT_FLAG("force-window", force_vo, CONF_GLOBAL), OPT_FLAG("ontop", vo.ontop, M_OPT_FIXED), @@ -572,6 +573,7 @@ const struct MPOpts mp_default_opts = { .gapless_audio = -1, .audio_buffer = 0.2, .audio_device = "auto", + .audio_client_name = "mpv", .vo = { .video_driver_list = NULL, .monitor_pixel_aspect = 1.0, -- cgit v1.2.3