2 edit ../win32.c, change the #if 0 to 1 at line 1326 to enabel quicktime fix!
9 #include "qtxsdk/components.h"
10 #include "qtxsdk/select.h"
11 #include "ldt_keeper.h"
13 char* get_path(const char* x
){ return strdup(x
);}
14 void* LoadLibraryA(char* name
);
15 void* GetProcAddress(void* handle
,char* func
);
17 #define __stdcall __attribute__((__stdcall__))
18 #define __cdecl __attribute__((__cdecl__))
23 ComponentDescription desc
;
24 Component (*FindNextComponent
)(Component prev
,ComponentDescription
* desc
);
25 long (*CountComponents
)(ComponentDescription
* desc
);
26 OSErr (*InitializeQTML
)(long flags
);
27 OSErr (*EnterMovies
)(void);
31 handler
= LoadLibraryA("/usr/local/lib/codecs/qtmlClient.dll");
32 printf("***************************\n");
33 InitializeQTML
= 0x1000c870; //GetProcAddress(handler, "InitializeQTML");
34 EnterMovies
= 0x10003ac0; //GetProcAddress(handler, "EnterMovies");
35 FindNextComponent
= 0x1000d5f0; //GetProcAddress(handler, "FindNextComponent");
36 CountComponents
= 0x1000d5d0; //GetProcAddress(handler, "CountComponents");
37 // = GetProcAddress(handler, "");
38 printf("handler: %p, funcs: %p %p %p, %p\n", handler
, InitializeQTML
, EnterMovies
, FindNextComponent
,CountComponents
);
40 ret
=InitializeQTML(0);
41 printf("InitializeQTML->%d\n",ret
);
43 printf("EnterMovies->%d\n",ret
);
45 memset(&desc
,0,sizeof(desc
));
46 desc
.componentType
= (((unsigned char)'S')<<24)|
47 (((unsigned char)'V')<<16)|
48 (((unsigned char)'Q')<<8)|
49 (((unsigned char)'5'));
50 desc
.componentSubType
=0;
51 desc
.componentManufacturer
=0;
52 desc
.componentFlags
=0;
53 desc
.componentFlagsMask
=0;
55 printf("Count = %ld\n",CountComponents(&desc
));