mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 15:33:37 +00:00
mciqtz: Call interface methods properly.
This commit is contained in:
parent
316ca9edac
commit
7f4d634e80
|
@ -241,13 +241,13 @@ static DWORD MCIQTZ_mciOpen(UINT wDevID, DWORD dwFlags,
|
|||
|
||||
err:
|
||||
if (wma->vidbasic)
|
||||
IUnknown_Release(wma->vidbasic);
|
||||
IBasicVideo_Release(wma->vidbasic);
|
||||
wma->vidbasic = NULL;
|
||||
if (wma->seek)
|
||||
IUnknown_Release(wma->seek);
|
||||
IMediaSeeking_Release(wma->seek);
|
||||
wma->seek = NULL;
|
||||
if (wma->vidwin)
|
||||
IUnknown_Release(wma->vidwin);
|
||||
IVideoWindow_Release(wma->vidwin);
|
||||
wma->vidwin = NULL;
|
||||
if (wma->pgraph)
|
||||
IGraphBuilder_Release(wma->pgraph);
|
||||
|
@ -282,9 +282,9 @@ static DWORD MCIQTZ_mciClose(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
|
|||
MCIQTZ_mciStop(wDevID, MCI_WAIT, NULL);
|
||||
|
||||
if (wma->opened) {
|
||||
IUnknown_Release(wma->vidwin);
|
||||
IUnknown_Release(wma->vidbasic);
|
||||
IUnknown_Release(wma->seek);
|
||||
IVideoWindow_Release(wma->vidwin);
|
||||
IBasicVideo_Release(wma->vidbasic);
|
||||
IMediaSeeking_Release(wma->seek);
|
||||
IMediaEvent_Release(wma->mevent);
|
||||
IGraphBuilder_Release(wma->pgraph);
|
||||
IMediaControl_Release(wma->pmctrl);
|
||||
|
|
Loading…
Reference in a new issue