From 1b5a093b96c59032b1915464eeb0cd3fe3128b8e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 9 Sep 2024 13:49:58 +0200 Subject: [PATCH] jackaudiosrc: actually use the queried ports from JACK When no ports are given, gst_jack_get_ports() is called to get all the (physical) output ports but then the result is ignored, triggering the "No physical output ports found..." error. Instead, move the queried ports to the variable we're going to use later. Part-of: --- subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c b/subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c index 87c2ce4aec..302b9b10e5 100644 --- a/subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c +++ b/subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c @@ -496,6 +496,7 @@ gst_jack_ring_buffer_acquire (GstAudioRingBuffer * buf, jack_ports = gst_jack_get_ports (client, src->port_pattern, NULL, JackPortIsOutput); } + available_ports = jack_ports; } if (!available_ports) {