summaryrefslogtreecommitdiffstats
path: root/loader/dmo/DMO_VideoDecoder.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-21 21:06:08 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-21 21:06:08 +0000
commit597c4bf9259a707196273bd6cfe06bb408fb6843 (patch)
treed0c3bc73a8c113bbdc6d14c2d8f71519f4b95739 /loader/dmo/DMO_VideoDecoder.c
parent6d21e908a0cc9fccdcfa0063af05cd1627dcc9bb (diff)
downloadmpv-597c4bf9259a707196273bd6cfe06bb408fb6843.tar.bz2
mpv-597c4bf9259a707196273bd6cfe06bb408fb6843.tar.xz
cygwin support patch by Sascha Sommer and some fixes by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9968 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dmo/DMO_VideoDecoder.c')
-rw-r--r--loader/dmo/DMO_VideoDecoder.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/loader/dmo/DMO_VideoDecoder.c b/loader/dmo/DMO_VideoDecoder.c
index c0672cbe46..9c3fc474a8 100644
--- a/loader/dmo/DMO_VideoDecoder.c
+++ b/loader/dmo/DMO_VideoDecoder.c
@@ -4,11 +4,13 @@
Copyright 2000 Eugene Kuznetsov (divx@euro.ru)
*********************************************************/
-
+#include "config.h"
#include "guids.h"
#include "interfaces.h"
#include "registry.h"
+#ifdef WIN32_LOADER
#include "../ldt_keeper.h"
+#endif
#ifndef NOAVIFILE_HEADERS
#include "videodecoder.h"
@@ -101,7 +103,9 @@ DMO_VideoDecoder * DMO_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHE
this->m_iLastQuality = -1;
this->m_iMaxAuto = maxauto;
+#ifdef WIN32_LOADER
Setup_LDT_Keeper();
+#endif
//memset(&m_obh, 0, sizeof(m_obh));
//m_obh.biSize = sizeof(m_obh);
@@ -313,7 +317,9 @@ int DMO_VideoDecoder_DecodeInternal(DMO_VideoDecoder *this, const void* src, int
// return -1;
// }
+#ifdef WIN32_LOADER
Setup_FS_Segment();
+#endif
bufferin = CMediaBufferCreate(size, (void*)src, size, 0);
result = this->m_pDMO_Filter->m_pMedia->vt->ProcessInput(this->m_pDMO_Filter->m_pMedia, 0,
@@ -500,7 +506,9 @@ int DMO_VideoDecoder_SetDestFmt(DMO_VideoDecoder *this, int bits, unsigned int c
break;
}
+#ifdef WIN32_LOADER
Setup_FS_Segment();
+#endif
// if(should_test)
// result = this->m_pDMO_Filter->m_pOutputPin->vt->QueryAccept(this->m_pDMO_Filter->m_pOutputPin, &this->m_sDestType);