mirror of https://github.com/mpv-player/mpv
6c56a413ab
Window classes are global per process, but they are associated with the module that registered them. Documentation is clear that it is the DLL's responsibility to unregister its own classes: No window classes registered by a DLL are unregistered when the DLL is unloaded. A DLL must explicitly unregister its classes when it is unloaded. See: https://learn.microsoft.com/windows/win32/api/winuser/nf-winuser-registerclassw Using a window class after the DLL is unloaded would result in access violation errors. This is not that important for libmpv, where it is unlikely someone would use the "mpv" window class externally. The real issue comes from the fact that reloading libmpv would fail to register the class (as it still exists) and consequently fail to create a window. This commit fixes the operability of libmpv after reloading it. Fixes: #11638 |
||
---|---|---|
.. | ||
decode | ||
filter | ||
out | ||
csputils.c | ||
csputils.h | ||
cuda.c | ||
d3d.c | ||
d3d.h | ||
drmprime.c | ||
fmt-conversion.c | ||
fmt-conversion.h | ||
hwdec.c | ||
hwdec.h | ||
image_loader.c | ||
image_loader.h | ||
image_writer.c | ||
image_writer.h | ||
img_format.c | ||
img_format.h | ||
mp_image.c | ||
mp_image.h | ||
mp_image_pool.c | ||
mp_image_pool.h | ||
repack.c | ||
repack.h | ||
sws_utils.c | ||
sws_utils.h | ||
vaapi.c | ||
vaapi.h | ||
vdpau.c | ||
vdpau.h | ||
vdpau_functions.inc | ||
vdpau_mixer.c | ||
vdpau_mixer.h | ||
zimg.c | ||
zimg.h |