Commit 65778a37 authored by Niklas Haas's avatar Niklas Haas Committed by Max Kellermann

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.
parent d9841668
ver 0.21.17 (not yet released)
* outputs
- jack: mark ports as terminal
ver 0.21.16 (2019/10/16)
* queue
......
......@@ -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\"",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment