mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-02 06:46:36 -04:00
impl-link: handle copy errors
This commit is contained in:
parent
dfc5fd86a7
commit
8e596bd85f
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue