diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2023-02-03 19:20:52 +0000 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2023-02-03 12:32:45 -0800 |
commit | 888a7c963f91295074b8178ea5735cba97f3f775 (patch) | |
tree | 62b8b422c940997e4df2aa1136082dc8595c8e9a /audio/out | |
parent | 771c8a165a396b532f2841ae12a15a5076280eff (diff) | |
download | mpv-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.c | 5 |
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; } |