Commit b81138bd authored by Diomendius's avatar Diomendius Committed by Max Kellermann

Fix JACK plugin outputting only to left channel

The JACK output plugin would not correctly upmix mono input files when exactly 2 output ports were configured. This fixes that.
parent 6de08814
......@@ -2,6 +2,8 @@ ver 0.21.12 (not yet released)
* decoder
- opus: ignore case in replay gain tag names
- opus, vorbis: decode the "end of stream" packet
* output
- jack: fix mono-to-stereo conversion
* Windows
- support backslash in relative URIs loaded from playlists
......
......@@ -540,7 +540,7 @@ JackOutput::Start()
std::fill(dports + num_dports, dports + audio_format.channels,
dports[0]);
} else if (num_dports > audio_format.channels) {
if (audio_format.channels == 1 && num_dports > 2) {
if (audio_format.channels == 1 && num_dports >= 2) {
/* mono input file: connect the one source
channel to the both destination channels */
duplicate_port = dports[1];
......
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