impl-link: handle copy errors

This commit is contained in:
Wim Taymans 2026-04-30 16:41:43 +02:00
parent dfc5fd86a7
commit 8e596bd85f

View file

@ -457,7 +457,12 @@ static int do_negotiate(struct pw_impl_link *this)
goto error;
}
format = spa_pod_copy(format);
if ((format = spa_pod_copy(format)) == NULL) {
error = spa_aprintf("error copy format: %m");
res = -errno;
goto error;
}
pw_log_pod(SPA_LOG_LEVEL_DEBUG, format);
spa_pod_fixate(format);
pw_log_pod(SPA_LOG_LEVEL_DEBUG, format);