Commit bd102b52 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

amstream: Call interface methods properly.

parent e40d0286
...@@ -87,8 +87,8 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream ...@@ -87,8 +87,8 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream
IsEqualGUID(riid, &IID_IMultiMediaStream) || IsEqualGUID(riid, &IID_IMultiMediaStream) ||
IsEqualGUID(riid, &IID_IAMMultiMediaStream)) IsEqualGUID(riid, &IID_IAMMultiMediaStream))
{ {
IUnknown_AddRef(iface); IAMMultiMediaStream_AddRef(iface);
*ppvObject = This; *ppvObject = iface;
return S_OK; return S_OK;
} }
...@@ -306,7 +306,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetFilterGraph(IAMMultiMediaStream ...@@ -306,7 +306,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetFilterGraph(IAMMultiMediaStream
return E_POINTER; return E_POINTER;
if (This->pFilterGraph) if (This->pFilterGraph)
return IFilterGraph_QueryInterface(This->pFilterGraph, &IID_IGraphBuilder, (void**)ppGraphBuilder); return IGraphBuilder_QueryInterface(This->pFilterGraph, &IID_IGraphBuilder, (void**)ppGraphBuilder);
else else
*ppGraphBuilder = NULL; *ppGraphBuilder = NULL;
......
...@@ -48,7 +48,7 @@ static HRESULT WINAPI IAudioDataImpl_QueryInterface(IAudioData *iface, REFIID ri ...@@ -48,7 +48,7 @@ static HRESULT WINAPI IAudioDataImpl_QueryInterface(IAudioData *iface, REFIID ri
IsEqualGUID(riid, &IID_IMemoryData) || IsEqualGUID(riid, &IID_IMemoryData) ||
IsEqualGUID(riid, &IID_IAudioData)) IsEqualGUID(riid, &IID_IAudioData))
{ {
IUnknown_AddRef(iface); IAudioData_AddRef(iface);
*ret_iface = iface; *ret_iface = iface;
return S_OK; return S_OK;
} }
......
...@@ -60,8 +60,8 @@ static HRESULT WINAPI IDirectDrawMediaStreamImpl_QueryInterface(IDirectDrawMedia ...@@ -60,8 +60,8 @@ static HRESULT WINAPI IDirectDrawMediaStreamImpl_QueryInterface(IDirectDrawMedia
IsEqualGUID(riid, &IID_IMediaStream) || IsEqualGUID(riid, &IID_IMediaStream) ||
IsEqualGUID(riid, &IID_IDirectDrawMediaStream)) IsEqualGUID(riid, &IID_IDirectDrawMediaStream))
{ {
IUnknown_AddRef(iface); IDirectDrawMediaStream_AddRef(iface);
*ppv = This; *ppv = iface;
return S_OK; return S_OK;
} }
......
...@@ -155,7 +155,7 @@ static void test_renderfile(void) ...@@ -155,7 +155,7 @@ static void test_renderfile(void)
error: error:
if (pddsample) if (pddsample)
IDirectDrawMediaSample_Release(pddsample); IDirectDrawStreamSample_Release(pddsample);
if (pddstream) if (pddstream)
IDirectDrawMediaStream_Release(pddstream); IDirectDrawMediaStream_Release(pddstream);
if (pvidstream) if (pvidstream)
...@@ -260,7 +260,7 @@ static void test_media_streams(void) ...@@ -260,7 +260,7 @@ static void test_media_streams(void)
} }
if (ddraw_sample) if (ddraw_sample)
IDirectDrawMediaSample_Release(ddraw_sample); IDirectDrawStreamSample_Release(ddraw_sample);
if (ddraw_stream) if (ddraw_stream)
IDirectDrawMediaStream_Release(ddraw_stream); IDirectDrawMediaStream_Release(ddraw_stream);
} }
......
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