On Tue Apr 28 13:19:57 2026 +0000, Conor McCarthy wrote:
I think to find which output to use on the optional, we would need a recursive function which follows each available output stream, through any subsequent optionals, until it reaches the downstream node, and check if it connects to the stream which upstream is already connected to. Have you seen evidence Windows does that? It seems a bit elaborate. I think native just connects through the first output of each optional node. Then once an optional node successfully connects, extra output streams (with index >0) from that node are explored, otherwise they are just ignored. Mostly what point 4) above is about, the "main" stream is the output stream #0 on each node, regardless to which input number it connects to on the next node.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10645#note_137993