summaryrefslogtreecommitdiffstats
path: root/loader/dshow/DS_VideoDecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/dshow/DS_VideoDecoder.c')
-rw-r--r--loader/dshow/DS_VideoDecoder.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/loader/dshow/DS_VideoDecoder.c b/loader/dshow/DS_VideoDecoder.c
index 59fa97ee0a..2316e4736e 100644
--- a/loader/dshow/DS_VideoDecoder.c
+++ b/loader/dshow/DS_VideoDecoder.c
@@ -57,7 +57,7 @@ static ct check[] = {
};
-DS_VideoDecoder * DS_VideoDecoder_Create(CodecInfo * info, BITMAPINFOHEADER * format, int flip, int maxauto)
+DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto)
{
DS_VideoDecoder *this;
HRESULT result;
@@ -142,7 +142,7 @@ DS_VideoDecoder * DS_VideoDecoder_Create(CodecInfo * info, BITMAPINFOHEADER * f
* ((this->iv.m_obh.biBitCount + 7) / 8);
- this->m_pDS_Filter = DS_FilterCreate((const char*)info->dll, info->guid, &this->m_sOurType, &this->m_sDestType);
+ this->m_pDS_Filter = DS_FilterCreate(dllname, guid, &this->m_sOurType, &this->m_sDestType);
if (!flip)
{
@@ -198,11 +198,11 @@ DS_VideoDecoder * DS_VideoDecoder_Create(CodecInfo * info, BITMAPINFOHEADER * f
this->m_sDestType.subtype = MEDIASUBTYPE_RGB24;
this->m_iMinBuffers = this->iv.VBUFSIZE;
- this->m_bIsDivX = (strcmp((const char*)info->dll, "divxcvki.ax") == 0
- || strcmp((const char*)info->dll, "divx_c32.ax") == 0
- || strcmp((const char*)info->dll, "wmvds32.ax") == 0
- || strcmp((const char*)info->dll, "wmv8ds32.ax") == 0);
- this->m_bIsDivX4 = (strcmp((const char*)info->dll, "divxdec.ax") == 0);
+ this->m_bIsDivX = (strcmp(dllname, "divxcvki.ax") == 0
+ || strcmp(dllname, "divx_c32.ax") == 0
+ || strcmp(dllname, "wmvds32.ax") == 0
+ || strcmp(dllname, "wmv8ds32.ax") == 0);
+ this->m_bIsDivX4 = (strcmp(dllname, "divxdec.ax") == 0);
if (this->m_bIsDivX)
this->iv.VBUFSIZE += 7;
else if (this->m_bIsDivX4)