Jinoh Kang (@iamahuman) commented about dlls/mfmediaengine/tests/mfmediaengine.c:
+ + rect.right = VIDEO_WIDTH; + rect.bottom = VIDEO_HEIGHT; + video_norm_rect.right = 1.0f; + video_norm_rect.bottom = 1.0f; + + viewport.Height = VIDEO_HEIGHT; + viewport.Width = VIDEO_WIDTH; + + while (WaitForSingleObject(notify->event_ended, 0) > WAIT_OBJECT_0) + { + ID3D11DeviceContext *d3d11_dev_ctx = NULL; + BOOL enable_print = FALSE; + D3D11_MAPPED_SUBRESOURCE mapped_subresource = { 0 }; + + if (PeekMessageW(&message, window, 0, 0, PM_REMOVE) > 0) you could do
```suggestion:-0+0 while (PeekMessageW(&message, window, 0, 0, PM_REMOVE) > 0) ``` but just remove this altogether and replace the `Sleep(16)` below with time-bounded message loop -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1046#note_10874