Mercurial > mplayer.hg
diff libmpcodecs/vd_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 | 73086ea05489 |
children | 6ff3379a0862 |
line wrap: on
line diff
--- a/libmpcodecs/vd_qtvideo.c Mon Jan 17 17:27:39 2005 +0000 +++ b/libmpcodecs/vd_qtvideo.c Mon Jan 17 20:57:48 2005 +0000 @@ -52,7 +52,7 @@ static GWorldPtr OutBufferGWorld = NULL;//a GWorld is some kind of description for a drawing environment static ImageDescriptionHandle framedescHandle; -//static HINSTANCE qtml_dll; +static HINSTANCE qtime_qts; // handle to the preloaded quicktime.qts static HMODULE handler; #if defined(USE_QTX_CODECS) && !defined(MACOSX) @@ -116,6 +116,13 @@ Setup_LDT_Keeper(); #endif + //preload quicktime.qts to avoid the problems caused by the hardcoded path inside the dll + qtime_qts = LoadLibraryA("QuickTime.qts"); + if(!qtime_qts){ + mp_msg(MSGT_DECVIDEO,MSGL_ERR,"unable to load QuickTime.qts\n" ); + return 0; + } + handler = LoadLibraryA("qtmlClient.dll"); if(!handler){ mp_msg(MSGT_DECVIDEO,MSGL_ERR,"unable to load qtmlClient.dll\n");