[Mplayer-cvslog] CVS: main/loader/qtx list.c,1.2,1.3

Arpi of Ize arpi at mplayer.dev.hu
Wed Mar 20 04:03:32 CET 2002


Update of /cvsroot/mplayer/main/loader/qtx
In directory mplayer:/var/tmp.root/cvs-serv22348

Modified Files:
	list.c 
Log Message:
InitializeQTML(0) added

Index: list.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/qtx/list.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- list.c	20 Mar 2002 01:39:09 -0000	1.2
+++ list.c	20 Mar 2002 03:03:29 -0000	1.3
@@ -19,20 +19,37 @@
 #define __cdecl   __attribute__((__cdecl__))
 #define APIENTRY 
 
+typedef long OSErr;
+
 int main(int argc, char *argv[]){
     void *handler;
     ComponentDescription desc;
     Component (*FindNextComponent)(Component prev,ComponentDescription* desc);
     long (*CountComponents)(ComponentDescription* desc);
+    OSErr (*InitializeQTML)(long flags);
+    OSErr (*EnterMovies)(void);
+    OSErr ret;
 
     Setup_LDT_Keeper();
     handler = LoadLibraryA("/usr/lib/win32/qtmlClient.dll");
-    FindNextComponent = GetProcAddress(handler, "FindNextComponent");
-    CountComponents = GetProcAddress(handler, "CountComponents");
-    printf("handler: %p, funcs: %p, %p\n", handler, FindNextComponent,CountComponents);
+    printf("***************************\n");
+    InitializeQTML = 0x1000c870; //GetProcAddress(handler, "InitializeQTML");
+    EnterMovies = 0x10003ac0; //GetProcAddress(handler, "EnterMovies");
+    FindNextComponent = 0x1000d5f0; //GetProcAddress(handler, "FindNextComponent");
+    CountComponents = 0x1000d5d0; //GetProcAddress(handler, "CountComponents");
+//     = GetProcAddress(handler, "");
+    printf("handler: %p, funcs: %p %p %p, %p\n", handler, InitializeQTML, EnterMovies, FindNextComponent,CountComponents);
+
+    ret=InitializeQTML(0);
+    printf("InitializeQTML->%d\n",ret);
+    ret=EnterMovies();
+    printf("EnterMovies->%d\n",ret);
 
     memset(&desc,0,sizeof(desc));
-    desc.componentType=0;
+    desc.componentType= (((unsigned char)'S')<<24)|
+			(((unsigned char)'V')<<16)|
+			(((unsigned char)'Q')<<8)|
+			(((unsigned char)'5'));
     desc.componentSubType=0;
     desc.componentManufacturer=0;
     desc.componentFlags=0;




More information about the MPlayer-cvslog mailing list