netjack2: handle property allocation failures

This commit is contained in:
Wim Taymans 2026-05-05 14:51:43 +02:00
parent 2ac7c81958
commit 899051169e
2 changed files with 8 additions and 0 deletions

View file

@ -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);

View file

@ -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,