amstream: Simplify IAMMultiMediaStream::GetFilterGraph().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0eea1b09d3
commit
753d007cbb
@ -250,20 +250,19 @@ static HRESULT WINAPI multimedia_stream_Initialize(IAMMultiMediaStream *iface,
|
|||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI multimedia_stream_GetFilterGraph(IAMMultiMediaStream *iface,
|
static HRESULT WINAPI multimedia_stream_GetFilterGraph(IAMMultiMediaStream *iface, IGraphBuilder **graph)
|
||||||
IGraphBuilder **ppGraphBuilder)
|
|
||||||
{
|
{
|
||||||
struct multimedia_stream *This = impl_from_IAMMultiMediaStream(iface);
|
struct multimedia_stream *mmstream = impl_from_IAMMultiMediaStream(iface);
|
||||||
|
|
||||||
TRACE("(%p/%p)->(%p)\n", This, iface, ppGraphBuilder);
|
TRACE("mmstream %p, graph %p.\n", mmstream, graph);
|
||||||
|
|
||||||
if (!ppGraphBuilder)
|
if (!graph)
|
||||||
return E_POINTER;
|
return E_POINTER;
|
||||||
|
|
||||||
if (This->pFilterGraph)
|
if (mmstream->pFilterGraph)
|
||||||
return IGraphBuilder_QueryInterface(This->pFilterGraph, &IID_IGraphBuilder, (void**)ppGraphBuilder);
|
IGraphBuilder_AddRef(*graph = mmstream->pFilterGraph);
|
||||||
else
|
else
|
||||||
*ppGraphBuilder = NULL;
|
*graph = NULL;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user