# HG changeset patch # User arpi # Date 1002196572 0 # Node ID 4b3f3f8508966bb21c4615b311a76191a1516213 # Parent 7f27b212e07b103a94c54a32aaee3caf2ea385cd killed unneeded dependency on c++ headers diff -r 7f27b212e07b -r 4b3f3f850896 loader/dshow/DS_AudioDec.c --- a/loader/dshow/DS_AudioDec.c Thu Oct 04 11:42:21 2001 +0000 +++ b/loader/dshow/DS_AudioDec.c Thu Oct 04 11:56:12 2001 +0000 @@ -3,18 +3,18 @@ #include "interfaces.h" #include "DS_AudioDecoder.h" -#include -#include +#include "wine/winerror.h" +#include "libwin32.h" //#include -#include -#include -#include -#include -#include -#include -#include -#include +//#include +//#include +//#include +//#include +//#include +//#include +//#include +//#include #include "DS_AudioDec.h" diff -r 7f27b212e07b -r 4b3f3f850896 loader/dshow/DS_AudioDecoder.c --- a/loader/dshow/DS_AudioDecoder.c Thu Oct 04 11:42:21 2001 +0000 +++ b/loader/dshow/DS_AudioDecoder.c Thu Oct 04 11:56:12 2001 +0000 @@ -68,7 +68,7 @@ try { m_pDS_Filter = new DS_Filter(); - m_pDS_Filter->Create(info.dll.c_str(), &info.guid, &m_sOurType, &m_sDestType); + m_pDS_Filter->Create(info.dll, &info.guid, &m_sOurType, &m_sDestType); m_pDS_Filter->Start(); ALLOCATOR_PROPERTIES props, props1; diff -r 7f27b212e07b -r 4b3f3f850896 loader/dshow/DS_AudioDecoder.h --- a/loader/dshow/DS_AudioDecoder.h Thu Oct 04 11:42:21 2001 +0000 +++ b/loader/dshow/DS_AudioDecoder.h Thu Oct 04 11:56:12 2001 +0000 @@ -1,7 +1,7 @@ #ifndef AVIFILE_DSHOW_H #define AVIFILE_DSHOW_H -#include +#include "libwin32.h" #include "DS_Filter.h" class DS_AudioDecoder : public IAudioDecoder diff -r 7f27b212e07b -r 4b3f3f850896 loader/dshow/DS_VideoDec.c --- a/loader/dshow/DS_VideoDec.c Thu Oct 04 11:42:21 2001 +0000 +++ b/loader/dshow/DS_VideoDec.c Thu Oct 04 11:56:12 2001 +0000 @@ -3,19 +3,20 @@ #include "libwin32.h" #include "DS_VideoDecoder.h" -#include +#include "wine/winerror.h" //#include -#include -#include -#include -#include -#include -#include -#include -#include +//#include +//#include +//#include +//#include +//#include -#include +//#include +//#include +//#include + +#include "registry.h" //#include #include "DS_VideoDec.h" diff -r 7f27b212e07b -r 4b3f3f850896 loader/dshow/DS_VideoDecoder.c --- a/loader/dshow/DS_VideoDecoder.c Thu Oct 04 11:42:21 2001 +0000 +++ b/loader/dshow/DS_VideoDecoder.c Thu Oct 04 11:56:12 2001 +0000 @@ -18,9 +18,10 @@ #include #include #include -#include -#include -#include + +//#include +//#include +//#include #define __MODULE__ "DirectShow_VideoDecoder" @@ -83,7 +84,7 @@ HRESULT result; - m_pDS_Filter->Create(info.dll.c_str(), &info.guid, &m_sOurType, &m_sDestType); + m_pDS_Filter->Create(info.dll, &info.guid, &m_sOurType, &m_sDestType); if (!flip) { @@ -150,10 +151,10 @@ m_sVhdr2->bmiHeader.biCompression = 0; m_sDestType.subtype = MEDIASUBTYPE_RGB24; - m_bIsDivX = ((info.dll == string("divxcvki.ax")) - || (info.dll == string("divx_c32.ax")) - || (info.dll == string("wmvds32.ax")) - || (info.dll == string("wmv8ds32.ax"))); + m_bIsDivX = ((strcmp(info.dll,"divxcvki.ax")==0) + || (strcmp(info.dll,"divx_c32.ax")==0) + || (strcmp(info.dll,"wmvds32.ax")==0) + || (strcmp(info.dll,"wmv8ds32.ax")==0) ); printf("m_bIsDivX=%d\n",m_bIsDivX); } @@ -501,7 +502,7 @@ return 0; } } - else if (record.dll == string("ir50_32.dll")) + else if (strcmp(record.dll,"ir50_32.dll")==0) { IHidden2* hidden = 0; if (m_pDS_Filter->m_pFilter->vt->QueryInterface((IUnknown*)m_pDS_Filter->m_pFilter, &IID_Iv50Hidden, (void**)&hidden)) @@ -584,7 +585,7 @@ if (strcmp(name, "Hue") == 0) return hidden->vt->SetSmth5(hidden, value, 0); } - else if (record.dll == string("ir50_32.dll")) + else if (strcmp(record.dll,"ir50_32.dll")==0) { IHidden2* hidden = 0; if (m_pDS_Filter->m_pFilter->vt->QueryInterface((IUnknown*)m_pDS_Filter->m_pFilter, &IID_Iv50Hidden, (void**)&hidden)) diff -r 7f27b212e07b -r 4b3f3f850896 loader/dshow/libwin32.h --- a/loader/dshow/libwin32.h Thu Oct 04 11:42:21 2001 +0000 +++ b/loader/dshow/libwin32.h Thu Oct 04 11:56:12 2001 +0000 @@ -33,7 +33,7 @@ #include #include #include -#include +//#include #include typedef unsigned int uint_t; // use as generic type - @@ -55,7 +55,8 @@ struct CodecInfo { - std::string dll; +// std::string dll; + char* dll; GUID guid; }; diff -r 7f27b212e07b -r 4b3f3f850896 loader/dshow/outputpin.c --- a/loader/dshow/outputpin.c Thu Oct 04 11:42:21 2001 +0000 +++ b/loader/dshow/outputpin.c Thu Oct 04 11:56:12 2001 +0000 @@ -2,8 +2,12 @@ #include "allocator.h" #include "iunk.h" #include "wine/winerror.h" -#include -#include + +#include "stdio.h" +//#include "string.h" + +//#include +//#include /* An object beyond interface IEnumMediaTypes.