Commit 753d007c authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

amstream: Simplify IAMMultiMediaStream::GetFilterGraph().

parent 0eea1b09
...@@ -250,20 +250,19 @@ static HRESULT WINAPI multimedia_stream_Initialize(IAMMultiMediaStream *iface, ...@@ -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;
} }
......
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