summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2023-02-03 19:20:52 +0000
committerPhilip Langdale <github.philipl@overt.org>2023-02-03 12:32:45 -0800
commit888a7c963f91295074b8178ea5735cba97f3f775 (patch)
tree62b8b422c940997e4df2aa1136082dc8595c8e9a /audio/out
parent771c8a165a396b532f2841ae12a15a5076280eff (diff)
downloadmpv-888a7c963f91295074b8178ea5735cba97f3f775.tar.bz2
mpv-888a7c963f91295074b8178ea5735cba97f3f775.tar.xz
ao_pipewire: adjust message level based on probing
Use the ao->probing property to upgrade the status message when the AO is explicitly selected. Suggested-by: uau on #mpv-devel
Diffstat (limited to 'audio/out')
-rw-r--r--audio/out/ao_pipewire.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c
index b11cf645db..3c0122196f 100644
--- a/audio/out/ao_pipewire.c
+++ b/audio/out/ao_pipewire.c
@@ -461,8 +461,9 @@ static int pipewire_init_boilerplate(struct ao *ao)
pw_properties_new(PW_KEY_REMOTE_NAME, p->options.remote, NULL),
0);
if (!p->core) {
- MP_VERBOSE(ao, "Could not connect to context '%s': %s\n",
- p->options.remote, strerror(errno));
+ MP_MSG(ao, ao->probing ? MSGL_V : MSGL_ERR,
+ "Could not connect to context '%s': %s\n",
+ p->options.remote, strerror(errno));
pw_context_destroy(context);
goto error;
}