media-session: Change some warnings to info

If a program using pipewire-alsa calls snd_pcm_close() immediately after
snd_pcm_prepare() without reading or writing any data the client node
may be removed before the session manager can link it, which would
result in the following log warnings:

can't link 35:40 -> 43:48: link-factory: unknown input port 48
error id:25 seq:11467 res:-22 (Invalid argument): link-factory: unknown input port 48
can't link 35:41 -> 43:46: link-factory: unknown input port 46
error id:16 seq:11468 res:-22 (Invalid argument): link-factory: unknown input port 46
This commit is contained in:
Jonas Holmberg 2021-09-01 10:48:57 +02:00 committed by Wim Taymans
parent eafef40430
commit 28cf342bb8

View file

@ -1741,7 +1741,7 @@ static void check_endpoint_link(struct endpoint_link *link)
static void proxy_link_error(void *data, int seq, int res, const char *message)
{
struct link *l = data;
pw_log_warn("can't link %d:%d -> %d:%d: %s",
pw_log_info("can't link %d:%d -> %d:%d: %s",
l->output_node, l->output_port,
l->input_node, l->input_port, message);
pw_proxy_destroy(l->proxy);
@ -2181,7 +2181,7 @@ static void core_error(void *data, uint32_t id, int seq, int res, const char *me
{
struct impl *impl = data;
pw_log(res == -ENOENT ? SPA_LOG_LEVEL_INFO : SPA_LOG_LEVEL_WARN,
pw_log(res == -ENOENT || res == -EINVAL ? SPA_LOG_LEVEL_INFO : SPA_LOG_LEVEL_WARN,
"error id:%u seq:%d res:%d (%s): %s",
id, seq, res, spa_strerror(res), message);