comparison libmpcodecs/ve_qtvideo.c @ 14528:860f06087aac

preload quicktime.qts, this allows us to ignore the hardcoded path inside the dlls so that quicktime.qts doesn't need to be in the windows system dir, patch by Gianluigi Tiesi <mplayer at netfarm.it>, comments by myself
author faust3
date Mon, 17 Jan 2005 20:57:48 +0000
parents f60bc2314146
children acf3241be19b
comparison
equal deleted inserted replaced
14527:5417ab15e900 14528:860f06087aac
32 #include "vf.h" 32 #include "vf.h"
33 33
34 HMODULE WINAPI LoadLibraryA(LPCSTR); 34 HMODULE WINAPI LoadLibraryA(LPCSTR);
35 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR); 35 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
36 int WINAPI FreeLibrary(HMODULE); 36 int WINAPI FreeLibrary(HMODULE);
37 static HINSTANCE qtime_qts; //handle to preloaded quicktime.qts
37 static HMODULE handler; 38 static HMODULE handler;
38 39
39 static OSErr (*FindCodec)(CodecType cType, 40 static OSErr (*FindCodec)(CodecType cType,
40 CodecComponent specCodec, 41 CodecComponent specCodec,
41 CompressorComponent * compressor, 42 CompressorComponent * compressor,
294 295
295 296
296 #ifdef WIN32_LOADER 297 #ifdef WIN32_LOADER
297 Setup_LDT_Keeper(); 298 Setup_LDT_Keeper();
298 #endif 299 #endif
300 //preload quicktime.qts to avoid the problems caused by the hardcoded path inside the dll
301 qtime_qts = LoadLibraryA("QuickTime.qts");
302 if(!qtime_qts){
303 mp_msg(MSGT_MENCODER,MSGL_ERR,"unable to load QuickTime.qts\n" );
304 return 0;
305 }
306
299 handler = LoadLibraryA("qtmlClient.dll"); 307 handler = LoadLibraryA("qtmlClient.dll");
300 if(!handler){ 308 if(!handler){
301 mp_msg(MSGT_MENCODER,MSGL_ERR,"unable to load qtmlClient.dll\n"); 309 mp_msg(MSGT_MENCODER,MSGL_ERR,"unable to load qtmlClient.dll\n");
302 return 0; 310 return 0;
303 } 311 }