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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7474>
This commit is contained in:
Wim Taymans 2024-09-09 13:49:58 +02:00 committed by GStreamer Marge Bot
parent a12a5f6a25
commit 1b5a093b96

View file

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