1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00

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
This commit is contained in:
Thomas Weißschuh 2023-02-03 19:20:52 +00:00 committed by Philip Langdale
parent 771c8a165a
commit 888a7c963f

View File

@ -461,7 +461,8 @@ 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",
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;