On Fri Dec 5 08:35:05 2025 +0000, Nikolay Sivov wrote:
I don't remember details at this point. Was it decided that both encoder and converter can't be used at the same time? GetTransformForStream() suggests otherwise. If you potentially need both encoder and converter, like in a case of "input -> converter -> encoder -> output", then you'll need start negotiation from output side. Find appropriate encoders and then converter that works for {input type, supported encoder input type} pair, trying each pair. Yes, we can use both encoder and converter the same time. It is implemented in PATCH 4 with a recursive call like what we have in reader.c: source_reader_create_transform().
In fact the whole implementations here is nearly the same as source_reader_create_decoder_for_stream(), but with same code refactor. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9633#note_125253