# HG changeset patch # User arpi_esp # Date 985869531 0 # Node ID 1c3029be6713c946da7ec81d16f83dae96f58e42 # Parent 9d9f3337d648d57c824ee505c9cc2d51927defab Setup_FS fix for directshow diff -r 9d9f3337d648 -r 1c3029be6713 loader/dshow/DS_Filter.c --- a/loader/dshow/DS_Filter.c Thu Mar 29 10:06:26 2001 +0000 +++ b/loader/dshow/DS_Filter.c Thu Mar 29 12:38:51 2001 +0000 @@ -15,6 +15,9 @@ extern "C" STDCALL void* GetProcAddress(int, const char*); extern "C" int STDCALL FreeLibrary(int); +extern "C" void Setup_LDT_Keeper(); +extern "C" void setup_FS_Segment(); + DS_Filter::DS_Filter() :m_iHandle(0), m_pFilter(0), m_pInputPin(0), m_pOutputPin(0), m_pSrcFilter(0), @@ -25,6 +28,9 @@ void DS_Filter::Create(string dllname, const GUID* id, AM_MEDIA_TYPE* in_fmt, AM_MEDIA_TYPE* out_fmt) { + + Setup_LDT_Keeper(); + try { string _fullname=def_path; @@ -42,9 +48,11 @@ result=func(id, &IID_IClassFactory, (void**)&factory); if(result || (!factory)) throw FATAL("No such class object");; - printf("# factory = %X\n",(unsigned int)factory); - printf("# factory->vt = %X\n",(unsigned int)factory->vt); - printf("# factory->vt->CreateInstance = %X\n",(unsigned int)factory->vt->CreateInstance); +// printf("# factory = %X\n",(unsigned int)factory); +// printf("# factory->vt = %X\n",(unsigned int)factory->vt); +// printf("# factory->vt->CreateInstance = %X\n",(unsigned int)factory->vt->CreateInstance); + + setup_FS_Segment(); printf("Calling factory->vt->CreateInstance()\n"); result=factory->vt->CreateInstance(factory, 0, &IID_IUnknown, (void**)&object);