2010-02-03 08:32:35 +00:00
|
|
|
/*
|
|
|
|
* To compile edit loader/win32.c and change the #if 0 to 1 at line 1326
|
|
|
|
* to enable quicktime fix!
|
|
|
|
*
|
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2002-03-20 01:36:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "qtxsdk/components.h"
|
|
|
|
#include "qtxsdk/select.h"
|
2010-01-04 20:32:23 +00:00
|
|
|
#include "loader/ldt_keeper.h"
|
2010-06-14 11:30:59 +00:00
|
|
|
#include "loader/wine/winbase.h"
|
2002-03-20 01:36:41 +00:00
|
|
|
|
2009-02-17 12:00:43 +00:00
|
|
|
int main(void) {
|
2002-03-20 01:36:41 +00:00
|
|
|
void *handler;
|
|
|
|
ComponentDescription desc;
|
|
|
|
Component (*FindNextComponent)(Component prev,ComponentDescription* desc);
|
|
|
|
long (*CountComponents)(ComponentDescription* desc);
|
2002-03-20 03:03:29 +00:00
|
|
|
OSErr (*InitializeQTML)(long flags);
|
|
|
|
OSErr (*EnterMovies)(void);
|
|
|
|
OSErr ret;
|
2002-03-20 01:36:41 +00:00
|
|
|
|
|
|
|
Setup_LDT_Keeper();
|
2008-01-06 12:22:56 +00:00
|
|
|
handler = LoadLibraryA("/usr/local/lib/codecs/qtmlClient.dll");
|
2002-03-20 03:03:29 +00:00
|
|
|
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);
|
2002-03-20 01:36:41 +00:00
|
|
|
|
|
|
|
memset(&desc,0,sizeof(desc));
|
2002-03-20 03:03:29 +00:00
|
|
|
desc.componentType= (((unsigned char)'S')<<24)|
|
|
|
|
(((unsigned char)'V')<<16)|
|
|
|
|
(((unsigned char)'Q')<<8)|
|
|
|
|
(((unsigned char)'5'));
|
2002-03-20 01:36:41 +00:00
|
|
|
desc.componentSubType=0;
|
|
|
|
desc.componentManufacturer=0;
|
|
|
|
desc.componentFlags=0;
|
|
|
|
desc.componentFlagsMask=0;
|
2009-05-13 02:58:57 +00:00
|
|
|
|
2008-04-28 12:01:13 +00:00
|
|
|
printf("Count = %ld\n",CountComponents(&desc));
|
2008-04-28 13:07:01 +00:00
|
|
|
|
2002-03-20 01:36:41 +00:00
|
|
|
exit(0);
|
|
|
|
}
|