amstream: Remove some casts.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-09-01 03:06:48 +03:00 committed by Alexandre Julliard
parent 8788061b10
commit e5f01e5107
2 changed files with 5 additions and 5 deletions

View File

@ -67,7 +67,7 @@ HRESULT AM_create(IUnknown *pUnkOuter, LPVOID *ppObj)
object->IAMMultiMediaStream_iface.lpVtbl = &AM_Vtbl; object->IAMMultiMediaStream_iface.lpVtbl = &AM_Vtbl;
object->ref = 1; object->ref = 1;
*ppObj = object; *ppObj = &object->IAMMultiMediaStream_iface;
return S_OK; return S_OK;
} }

View File

@ -360,7 +360,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_AddMediaStream(IMediaStreamFilter* i
if (!pins) if (!pins)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
This->pins = pins; This->pins = pins;
info.pFilter = (IBaseFilter*)&This->filter; info.pFilter = &This->filter.IBaseFilter_iface;
info.dir = PINDIR_INPUT; info.dir = PINDIR_INPUT;
hr = IAMMediaStream_GetInformation(pAMMediaStream, &purpose_id, NULL); hr = IAMMediaStream_GetInformation(pAMMediaStream, &purpose_id, NULL);
if (FAILED(hr)) if (FAILED(hr))
@ -374,11 +374,11 @@ static HRESULT WINAPI MediaStreamFilterImpl_AddMediaStream(IMediaStreamFilter* i
return hr; return hr;
pin = (MediaStreamFilter_InputPin*)This->pins[This->nb_streams]; pin = (MediaStreamFilter_InputPin*)This->pins[This->nb_streams];
pin->pin.pin.pinInfo.pFilter = (LPVOID)This; pin->pin.pin.pinInfo.pFilter = &This->filter.IBaseFilter_iface;
This->streams[This->nb_streams] = (IMediaStream*)pAMMediaStream; This->streams[This->nb_streams] = (IMediaStream*)pAMMediaStream;
This->nb_streams++; This->nb_streams++;
IMediaStream_AddRef((IMediaStream*)pAMMediaStream); IAMMediaStream_AddRef(pAMMediaStream);
return S_OK; return S_OK;
} }
@ -522,7 +522,7 @@ HRESULT MediaStreamFilter_create(IUnknown *pUnkOuter, void **ppObj)
BaseFilter_Init(&object->filter, (IBaseFilterVtbl*)&MediaStreamFilter_Vtbl, &CLSID_MediaStreamFilter, (DWORD_PTR)(__FILE__ ": MediaStreamFilterImpl.csFilter"), &BaseFuncTable); BaseFilter_Init(&object->filter, (IBaseFilterVtbl*)&MediaStreamFilter_Vtbl, &CLSID_MediaStreamFilter, (DWORD_PTR)(__FILE__ ": MediaStreamFilterImpl.csFilter"), &BaseFuncTable);
*ppObj = object; *ppObj = &object->filter.IBaseFilter_iface;
return S_OK; return S_OK;
} }