Mercurial > mplayer.hg
changeset 2072:4b3f3f850896
killed unneeded dependency on c++ headers
author | arpi |
---|---|
date | Thu, 04 Oct 2001 11:56:12 +0000 |
parents | 7f27b212e07b |
children | 8500ef44bf5c |
files | loader/dshow/DS_AudioDec.c loader/dshow/DS_AudioDecoder.c loader/dshow/DS_AudioDecoder.h loader/dshow/DS_VideoDec.c loader/dshow/DS_VideoDecoder.c loader/dshow/libwin32.h loader/dshow/outputpin.c |
diffstat | 7 files changed, 43 insertions(+), 36 deletions(-) [+] |
line wrap: on
line diff
--- 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 <wine/winerror.h> -#include <libwin32.h> +#include "wine/winerror.h" +#include "libwin32.h" //#include <cpuinfo.h> -#include <unistd.h> -#include <fcntl.h> -#include <errno.h> -#include <sys/types.h> -#include <sys/mman.h> -#include <cstdio> -#include <iostream> -#include <strstream> +//#include <unistd.h> +//#include <fcntl.h> +//#include <errno.h> +//#include <sys/types.h> +//#include <sys/mman.h> +//#include <cstdio> +//#include <iostream> +//#include <strstream> #include "DS_AudioDec.h"
--- 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;
--- 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 <libwin32.h> +#include "libwin32.h" #include "DS_Filter.h" class DS_AudioDecoder : public IAudioDecoder
--- 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 <wine/winerror.h> +#include "wine/winerror.h" //#include <cpuinfo.h> -#include <unistd.h> -#include <fcntl.h> -#include <errno.h> -#include <sys/types.h> -#include <sys/mman.h> -#include <cstdio> -#include <iostream> -#include <strstream> +//#include <unistd.h> +//#include <fcntl.h> +//#include <errno.h> +//#include <sys/types.h> +//#include <sys/mman.h> -#include <registry.h> +//#include <cstdio> +//#include <iostream> +//#include <strstream> + +#include "registry.h" //#include <wine/winreg.h> #include "DS_VideoDec.h"
--- 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 <errno.h> #include <sys/types.h> #include <sys/mman.h> -#include <cstdio> -#include <iostream> -#include <strstream> + +//#include <cstdio> +//#include <iostream> +//#include <strstream> #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))
--- 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 <wine/vfw.h> #include <com.h> #include <stdarg.h> -#include <string> +//#include <string> #include <stdio.h> 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; };
--- 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 <cstdio> -#include <cstring> + +#include "stdio.h" +//#include "string.h" + +//#include <cstdio> +//#include <cstring> /* An object beyond interface IEnumMediaTypes.