output/Jack: mark ports as terminal

This is the correct thing to do for ports from which a signal ultimately
"originates", such as is the case with mpd.
This commit is contained in:
Niklas Haas
2019-01-10 20:57:44 +01:00
committed by Max Kellermann
parent d9841668ff
commit 65778a3774
2 changed files with 4 additions and 1 deletions

View File

@@ -403,10 +403,11 @@ JackOutput::Connect()
jack_on_shutdown(client, mpd_jack_shutdown, this);
for (unsigned i = 0; i < num_source_ports; ++i) {
unsigned long portflags = JackPortIsOutput | JackPortIsTerminal;
ports[i] = jack_port_register(client,
source_ports[i].c_str(),
JACK_DEFAULT_AUDIO_TYPE,
JackPortIsOutput, 0);
portflags, 0);
if (ports[i] == nullptr) {
Disconnect();
throw FormatRuntimeError("Cannot register output port \"%s\"",