summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-07 15:54:35 +0100
committerwm4 <wm4@nowhere>2014-11-07 15:54:35 +0100
commitb814b7ca84a85a6c17c4ab85ae9855afb62bc237 (patch)
treeced176126a7a58f9b8a6d034d27889f380164d11 /options
parent01141198be2beaec58928355b59ce5882027866e (diff)
downloadmpv-b814b7ca84a85a6c17c4ab85ae9855afb62bc237.tar.bz2
mpv-b814b7ca84a85a6c17c4ab85ae9855afb62bc237.tar.xz
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).
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
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,
diff --git a/options/options.h b/options/options.h
index 9dddf9b94e..f67a3a5c95 100644
--- a/options/options.h
+++ b/options/options.h
@@ -65,6 +65,7 @@ typedef struct MPOpts {
struct m_obj_settings *audio_driver_list, *ao_defs;
char *audio_device;
+ char *audio_client_name;
int fixed_vo;
int force_vo;
int softvol;