On Sat Dec 6 17:25:44 2025 +0000, Nikolay Sivov wrote:
Just a standalone test program is fine, no need to integrate that to wine tests. Media Session on Windows seems to have only one sample request (per stream) in flight at a time. So it must have a mechanism for keeping track of the number of requests it has received from a particular sink.
In Wine, we currently have [`requests`](https://gitlab.winehq.org/wine/wine/-/blob/5375446b5c6398adaf6d0ee1b8f3564ba...) for each sink to keep track of that. I wonder if we can't just increment that if we know we're not up to the point where we have started the sources, and then make the first sample request once the source is started. We do similar in [`session_flush_sinks`](https://gitlab.winehq.org/wine/wine/-/blob/5375446b5c6398adaf6d0ee1b8f3564ba...). That is we will send a sample request if one is pending. Although I think the decrement there is a bug (as it should only be decremented once the sample is delivered to the sink). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9716#note_125120