mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-06 06:46:29 -04:00
netjack2: handle property allocation failures
This commit is contained in:
parent
2ac7c81958
commit
899051169e
2 changed files with 8 additions and 0 deletions
|
|
@ -461,6 +461,10 @@ static void make_stream_ports(struct stream *s)
|
|||
|
||||
is_midi = true;
|
||||
}
|
||||
if (props == NULL) {
|
||||
pw_log_error("Can't create properties: %m");
|
||||
return;
|
||||
}
|
||||
latency = SPA_LATENCY_INFO(s->direction,
|
||||
.min_quantum = impl->latency,
|
||||
.max_quantum = impl->latency);
|
||||
|
|
|
|||
|
|
@ -628,6 +628,10 @@ static void make_stream_ports(struct stream *s)
|
|||
|
||||
is_midi = true;
|
||||
}
|
||||
if (props == NULL) {
|
||||
pw_log_error("Can't create properties: %m");
|
||||
return;
|
||||
}
|
||||
spa_zero(latency);
|
||||
latency = SPA_LATENCY_INFO(s->direction,
|
||||
.min_quantum = follower->peer.params.network_latency,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue