Skip to content

d3d11videosink/win32 window: fix race condition in unprepare

When the state changes not from the window thread, we have to wait until the handler is released, otherwise we unblock the destruction of the GstD3D11WindowWin32 object, and it can be freed. It is possible that window thread does another proccessing at this moment, such as resizing the window, or handling any other message.

Merge request reports