diff options
author | 2001-10-04 11:56:12 +0000 | |
---|---|---|
committer | 2001-10-04 11:56:12 +0000 | |
commit | f7d7e887d9c75c0efaadb0beba7cce42a2cb5cc0 (patch) | |
tree | 4bc3bda225e356ec4308d62d6a9b8d6d7c421f56 /loader/dshow/DS_VideoDecoder.c | |
parent | 31af6ae1cd148808b704d0db7a0c3268a3023145 (diff) |
killed unneeded dependency on c++ headers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2073 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/DS_VideoDecoder.c')
-rw-r--r-- | loader/dshow/DS_VideoDecoder.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/loader/dshow/DS_VideoDecoder.c b/loader/dshow/DS_VideoDecoder.c index a04817c495..0f4fdd7a1b 100644 --- a/loader/dshow/DS_VideoDecoder.c +++ b/loader/dshow/DS_VideoDecoder.c @@ -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 @@ DS_VideoDecoder::DS_VideoDecoder(const CodecInfo& info, const BITMAPINFOHEADER& 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 @@ DS_VideoDecoder::DS_VideoDecoder(const CodecInfo& info, const BITMAPINFOHEADER& 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 @@ HRESULT DS_VideoDecoder::GetValue(const char* name, int& value) 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 @@ HRESULT DS_VideoDecoder::SetValue(const char* name, int value) 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)) |