amstream: Call interface methods properly.
This commit is contained in:
parent
e40d02868d
commit
bd102b5276
dlls/amstream
|
@ -87,8 +87,8 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream
|
|||
IsEqualGUID(riid, &IID_IMultiMediaStream) ||
|
||||
IsEqualGUID(riid, &IID_IAMMultiMediaStream))
|
||||
{
|
||||
IUnknown_AddRef(iface);
|
||||
*ppvObject = This;
|
||||
IAMMultiMediaStream_AddRef(iface);
|
||||
*ppvObject = iface;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -306,7 +306,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetFilterGraph(IAMMultiMediaStream
|
|||
return E_POINTER;
|
||||
|
||||
if (This->pFilterGraph)
|
||||
return IFilterGraph_QueryInterface(This->pFilterGraph, &IID_IGraphBuilder, (void**)ppGraphBuilder);
|
||||
return IGraphBuilder_QueryInterface(This->pFilterGraph, &IID_IGraphBuilder, (void**)ppGraphBuilder);
|
||||
else
|
||||
*ppGraphBuilder = NULL;
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ static HRESULT WINAPI IAudioDataImpl_QueryInterface(IAudioData *iface, REFIID ri
|
|||
IsEqualGUID(riid, &IID_IMemoryData) ||
|
||||
IsEqualGUID(riid, &IID_IAudioData))
|
||||
{
|
||||
IUnknown_AddRef(iface);
|
||||
IAudioData_AddRef(iface);
|
||||
*ret_iface = iface;
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -60,8 +60,8 @@ static HRESULT WINAPI IDirectDrawMediaStreamImpl_QueryInterface(IDirectDrawMedia
|
|||
IsEqualGUID(riid, &IID_IMediaStream) ||
|
||||
IsEqualGUID(riid, &IID_IDirectDrawMediaStream))
|
||||
{
|
||||
IUnknown_AddRef(iface);
|
||||
*ppv = This;
|
||||
IDirectDrawMediaStream_AddRef(iface);
|
||||
*ppv = iface;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ static void test_renderfile(void)
|
|||
|
||||
error:
|
||||
if (pddsample)
|
||||
IDirectDrawMediaSample_Release(pddsample);
|
||||
IDirectDrawStreamSample_Release(pddsample);
|
||||
if (pddstream)
|
||||
IDirectDrawMediaStream_Release(pddstream);
|
||||
if (pvidstream)
|
||||
|
@ -260,7 +260,7 @@ static void test_media_streams(void)
|
|||
}
|
||||
|
||||
if (ddraw_sample)
|
||||
IDirectDrawMediaSample_Release(ddraw_sample);
|
||||
IDirectDrawStreamSample_Release(ddraw_sample);
|
||||
if (ddraw_stream)
|
||||
IDirectDrawMediaStream_Release(ddraw_stream);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue