mirror of https://github.com/mpv-player/mpv
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. patch by Gianluigi Tiesi, mplayer netfarm it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24596 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
959c4cb937
commit
06facf3a90
|
@ -298,6 +298,6 @@ cleanup:
|
||||||
if (fourcc) free(fourcc);
|
if (fourcc) free(fourcc);
|
||||||
if (filename) free(filename);
|
if (filename) free(filename);
|
||||||
if (hDriver) CloseDriver(hDriver, 0, 0);
|
if (hDriver) CloseDriver(hDriver, 0, 0);
|
||||||
if (coinit == S_OK) CoUninitialize();
|
if ((coinit == S_OK) || coinit == S_FALSE) CoUninitialize();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue