summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
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 /audio/out/ao.c
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 'audio/out/ao.c')
-rw-r--r--audio/out/ao.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index b94e459091..baf6db1e45 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -207,6 +207,8 @@ static struct ao *ao_alloc_pb(bool probing, struct mpv_global *global,
match_ao_driver(ao->driver->name, opts->audio_device, &ao->device);
ao->device = talloc_strdup(ao, ao->device);
+ ao->client_name = talloc_strdup(ao, opts->audio_client_name);
+
return ao;
}