[Mplayer-cvslog] CVS: main/loader afl.c,1.4,1.5

Alex Beregszaszi alex at mplayerhq.hu
Mon Apr 21 21:17:04 CEST 2003


Update of /cvsroot/mplayer/main/loader
In directory mail:/var/tmp.root/cvs-serv957

Modified Files:
	afl.c 
Log Message:
cygwin support by Sascha Sommer

Index: afl.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/afl.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- afl.c	13 Sep 2002 19:43:13 -0000	1.4
+++ afl.c	21 Apr 2003 19:16:31 -0000	1.5
@@ -273,6 +273,9 @@
 
     TRACE("('%s', '%x', 0x%08x)\n", pszFileName, wFormatTag, hinstModule);
 
+#ifndef WIN32_LOADER
+	MSACM_hHeap = GetProcessHeap();
+#endif
     padid = (PWINE_ACMDRIVERID) HeapAlloc(MSACM_hHeap, 0, sizeof(WINE_ACMDRIVERID));
     padid->pszFileName = (char*)malloc(strlen(pszFileName)+1);
     strcpy(padid->pszFileName, pszFileName);
@@ -494,7 +497,9 @@
 	if (phas)
 	    *phas = (HACMSTREAM)was;
 	TRACE("=> (%d)\n", ret);
+#ifdef WIN32_LOADER
         CodecAlloc();
+#endif
 	return ret;
     }
 errCleanUp:		
@@ -521,7 +526,9 @@
 	if (was->hAcmDriver)
 	    acmDriverClose(was->hAcmDriver, 0L);	
 	HeapFree(MSACM_hHeap, 0, was);
+#ifdef WIN32_LOADER
         CodecRelease();
+#endif
     }
     TRACE("=> (%d)\n", ret);
     return ret;



More information about the MPlayer-cvslog mailing list