qcap: Remove unneeded casts.

This commit is contained in:
Andrew Talbot 2008-01-15 21:49:21 +00:00 committed by Alexandre Julliard
parent 5ea25c62b8
commit 69c984b9f2
2 changed files with 5 additions and 5 deletions

View file

@ -165,7 +165,7 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface)
This->lpVtbl = NULL;
This->lpVtbl2 = NULL;
if (This->mygraph != NULL)
IGraphBuilder_Release((IGraphBuilder *)This->mygraph);
IGraphBuilder_Release(This->mygraph);
CoTaskMemFree(This);
ObjectRefCount(FALSE);
}
@ -191,7 +191,7 @@ fnCaptureGraphBuilder2_SetFilterGraph(ICaptureGraphBuilder2 * iface,
return E_POINTER;
This->mygraph = pfg;
IGraphBuilder_AddRef((IGraphBuilder *)This->mygraph);
IGraphBuilder_AddRef(This->mygraph);
if (SUCCEEDED(IUnknown_QueryInterface(This->mygraph,
&IID_IMediaEvent, (LPVOID *)&pmev)))
{
@ -219,7 +219,7 @@ fnCaptureGraphBuilder2_GetFilterGraph(ICaptureGraphBuilder2 * iface,
return E_UNEXPECTED;
}
IGraphBuilder_AddRef((IGraphBuilder *)This->mygraph);
IGraphBuilder_AddRef(This->mygraph);
TRACE("(%p) return filtergraph %p\n", iface, *pfg);
return S_OK;

View file

@ -893,11 +893,11 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card )
TRACE("format: %d bits - %d x %d\n", capBox->bitDepth, capBox->width, capBox->height);
return (Capture*) capBox;
return capBox;
error:
if (capBox)
qcap_driver_destroy( (Capture*) capBox );
qcap_driver_destroy( capBox );
return NULL;
}