diff loader/dmo/DMO_AudioDecoder.c @ 9967:b0d1b415320c

cygwin support patch by Sascha Sommer and some fixes by me
author alex
date Mon, 21 Apr 2003 21:06:08 +0000
parents fb88ccbc5ccc
children f70772d02eaa
line wrap: on
line diff
--- a/loader/dmo/DMO_AudioDecoder.c	Mon Apr 21 21:04:59 2003 +0000
+++ b/loader/dmo/DMO_AudioDecoder.c	Mon Apr 21 21:06:08 2003 +0000
@@ -4,14 +4,16 @@
 	 Copyright 2001 Eugene Kuznetsov  (divx@euro.ru)
 
 *********************************************************/
-
+#include "config.h"
 #ifndef NOAVIFILE_HEADERS
 #include "audiodecoder.h"
 #include "except.h"
 #else
 #include "libwin32.h"
+#ifdef WIN32_LOADER
 #include "ldt_keeper.h"
 #endif
+#endif
 
 #include "DMO_Filter.h"
 #include "DMO_AudioDecoder.h"
@@ -43,8 +45,10 @@
     int sz;
     WAVEFORMATEX* pWF;
 
+#ifdef WIN32_LOADER
     Setup_LDT_Keeper();
     Setup_FS_Segment();
+#endif
         
     this = malloc(sizeof(DMO_AudioDecoder));
     
@@ -118,7 +122,9 @@
     if (!in_data || !out_data)
 	return -1;
 
+#ifdef WIN32_LOADER
     Setup_FS_Segment();
+#endif
     
     //m_pDMO_Filter->m_pMedia->vt->Lock(m_pDMO_Filter->m_pMedia, 1);
     bufferin = CMediaBufferCreate(in_size, (void*)in_data, in_size, 1);