This fixes some playback issues on sleep / resume cycles. Afaics it is also apparently the same clock source as native.
From: Rémi Bernon rbernon@codeweavers.com
--- dlls/mfplat/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c index 7027b4f9516..8aaf9f93cdc 100644 --- a/dlls/mfplat/main.c +++ b/dlls/mfplat/main.c @@ -974,11 +974,14 @@ HRESULT WINAPI MFTUnregisterLocal(IClassFactory *factory)
MFTIME WINAPI MFGetSystemTime(void) { - MFTIME mf; + static LARGE_INTEGER frequency; + LARGE_INTEGER counter;
- GetSystemTimeAsFileTime( (FILETIME*)&mf ); + if (!frequency.QuadPart) + QueryPerformanceFrequency(&frequency); + QueryPerformanceCounter(&counter);
- return mf; + return counter.QuadPart * 10000000 / frequency.QuadPart; }
static BOOL mft_is_type_info_match(struct mft_registration *mft, const GUID *category, UINT32 flags,
Hi,
It looks like your patch introduced the new failures shown below. Please investigate and fix them before resubmitting your patch. If they are not new, fixing them anyway would help a lot. Otherwise please ask for the known failures list to be updated.
The tests also ran into some preexisting test failures. If you know how to fix them that would be helpful. See the TestBot job for the details:
The full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=134069
Your paranoid android.
=== debian11 (32 bit report) ===
Report validation errors: quartz:vmr9 has no test summary line (early exit of the main process?) quartz:vmr9 has unaccounted for todo messages
This merge request was approved by Nikolay Sivov.