Commit 69c984b9 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

qcap: Remove unneeded casts.

parent 5ea25c62
...@@ -165,7 +165,7 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface) ...@@ -165,7 +165,7 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface)
This->lpVtbl = NULL; This->lpVtbl = NULL;
This->lpVtbl2 = NULL; This->lpVtbl2 = NULL;
if (This->mygraph != NULL) if (This->mygraph != NULL)
IGraphBuilder_Release((IGraphBuilder *)This->mygraph); IGraphBuilder_Release(This->mygraph);
CoTaskMemFree(This); CoTaskMemFree(This);
ObjectRefCount(FALSE); ObjectRefCount(FALSE);
} }
...@@ -191,7 +191,7 @@ fnCaptureGraphBuilder2_SetFilterGraph(ICaptureGraphBuilder2 * iface, ...@@ -191,7 +191,7 @@ fnCaptureGraphBuilder2_SetFilterGraph(ICaptureGraphBuilder2 * iface,
return E_POINTER; return E_POINTER;
This->mygraph = pfg; This->mygraph = pfg;
IGraphBuilder_AddRef((IGraphBuilder *)This->mygraph); IGraphBuilder_AddRef(This->mygraph);
if (SUCCEEDED(IUnknown_QueryInterface(This->mygraph, if (SUCCEEDED(IUnknown_QueryInterface(This->mygraph,
&IID_IMediaEvent, (LPVOID *)&pmev))) &IID_IMediaEvent, (LPVOID *)&pmev)))
{ {
...@@ -219,7 +219,7 @@ fnCaptureGraphBuilder2_GetFilterGraph(ICaptureGraphBuilder2 * iface, ...@@ -219,7 +219,7 @@ fnCaptureGraphBuilder2_GetFilterGraph(ICaptureGraphBuilder2 * iface,
return E_UNEXPECTED; return E_UNEXPECTED;
} }
IGraphBuilder_AddRef((IGraphBuilder *)This->mygraph); IGraphBuilder_AddRef(This->mygraph);
TRACE("(%p) return filtergraph %p\n", iface, *pfg); TRACE("(%p) return filtergraph %p\n", iface, *pfg);
return S_OK; return S_OK;
......
...@@ -893,11 +893,11 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card ) ...@@ -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); TRACE("format: %d bits - %d x %d\n", capBox->bitDepth, capBox->width, capBox->height);
return (Capture*) capBox; return capBox;
error: error:
if (capBox) if (capBox)
qcap_driver_destroy( (Capture*) capBox ); qcap_driver_destroy( capBox );
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment