If we don't use `stream_index`, then the first sample in the response queue is popped and delivered. However, this sample may not be from the stream that is making the sample request.
This fixes audio distortion in River City Girls. The video stream was hitting EOS prior to the audio stream. As a result, the video MFTs were drained and all the resultant samples were placed in the response. Then, when an audio sample was requested and then delivered, the `SOURCE_READER_ASYNC_SAMPLE_READY` operation was triggered which was delivering the first sample in that response queue; which was a video sample rather than the requested audio sample. As a result, the video data was rendered as audio (causing the audio distortion).
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7987
Fixes Country Siblings' crash on startup.
`d2d_device_context_draw` doesn't accept `D2D_TARGET_UNKNOWN` because `render_target->target.bitmap->rtv` isn't reliably set when calling `ID3D11DeviceContext1_OMSetRenderTargets`. Therefore, we check for that condition and return early.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58185
--
v4: d2d1: Fix a crash in DrawGlyphRun method family if no target is set.
d2d1: Fix a crash in FillGeometry method family if no target is set.
d2d1: Fix a crash in DrawGeometry method family if no target is set.
d2d1: Fix a crash in DrawBitmap method family if no target is set.
d2d1: Fix a crash in Clear method if no target is set.
https://gitlab.winehq.org/wine/wine/-/merge_requests/7959
This confuses mutter and it manifests with spurious IconicState WM_STATE
change when it decides to try managing the window, but it also makes it
randomly lose focus or even fail to map the window back on screen.
Adding the flag after the window has been created fixes the issue.
--
v4: winex11: Avoid creating windows with override-redirect flag set.
https://gitlab.winehq.org/wine/wine/-/merge_requests/7181
Signed-off-by: YeshunYe <yeyeshun(a)uniontech.com>
find supports /I for case-insensitive search.
In practice, however, find /i also works (tested on WinXP, Win7, and Win10).
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8005