[MPlayer-dev-eng] [PATCH] minor fix to vfw2menc

Gianluigi Tiesi mplayer at netfarm.it
Sun Sep 23 17:34:50 CEST 2007


According to msdn:

A thread must call CoUninitialize once for each successful call it has
made to CoInitialize or CoInitializeEx, including any call that returns
S_FALSE. Only the CoUninitialize call corresponding to the CoInitialize
or CoInitializeEx call that initialized the library can close it.

Regards
-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
diff -NuBr -x.svn -xvidix -xhelp_mp.h -xlibdha -x'*.so' -x'*.log' -x'*.a' -x'*.exe' -x'*.o' -xconfigure.log -xconfig.mak -x.cvsignore -xconfig.h -xcodecs.conf.h -xversion.h -x.depend main/TOOLS/vfw2menc.c sherpya/TOOLS/vfw2menc.c
--- main/TOOLS/vfw2menc.c	2007-09-13 20:43:16.562500000 +0200
+++ sherpya/TOOLS/vfw2menc.c	2007-09-23 17:29:59.265625000 +0200
@@ -298,6 +298,6 @@
     if (fourcc) free(fourcc);
     if (filename) free(filename);
     if (hDriver) CloseDriver(hDriver, 0, 0);
-    if (coinit == S_OK) CoUninitialize();
+    if ((coinit == S_OK) || coinit == S_FALSE) CoUninitialize();
     return ret;
 }


More information about the MPlayer-dev-eng mailing list