diff --git a/libmpcodecs/ve_qtvideo.c b/libmpcodecs/ve_qtvideo.c index 57b28dfbc7..81d5c6812d 100644 --- a/libmpcodecs/ve_qtvideo.c +++ b/libmpcodecs/ve_qtvideo.c @@ -12,7 +12,7 @@ #include "../mp_msg.h" #include "../bswap.h" -#ifdef USE_WIN32DLL +#ifdef WIN32_LOADER #include "ldt_keeper.h" #endif @@ -20,10 +20,6 @@ #include "../loader/qtx/qtxsdk/components.h" #include "wine/windef.h" -#ifdef USE_WIN32DLL -#include "ldt_keeper.h" -#endif - #include "codec-cfg.h" #include "stream.h" #include "demuxer.h" @@ -296,7 +292,9 @@ static int vf_open(vf_instance_t *vf, char* args){ mux_v->bih->biBitCount=24; +#ifdef WIN32_LOADER Setup_LDT_Keeper(); +#endif handler = LoadLibraryA("qtmlClient.dll"); InitializeQTML = (OSErr (*)(long))GetProcAddress(handler, "InitializeQTML"); GetGWorldPixMap = (PixMapHandle (*)(GWorldPtr))GetProcAddress(handler, "GetGWorldPixMap");