24 Oct
2023
24 Oct
'23
9:36 p.m.
Nikolay Sivov (@nsivov) commented about dlls/mfmediaengine/main.c:
if (FAILED(hr)) WARN("Failed to create source object, hr %#lx.\n", hr);
+ if (engine->flags & FLAGS_ENGINE_SHUT_DOWN) + { + LeaveCriticalSection(&engine->cs); + TRACE("Engine is shut down, stopping...\n"); + IUnknown_Release(object); + return S_OK; + } +
No, that's not what I meant. This way you still send MF_MEDIA_ENGINE_EVENT_LOADSTART contrary to what patch subject says. I meant checking for shutdown flags right after grabbing the lock, the same way it's done for public methods. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4133#note_49684