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,
return hr;
}
static HRESULT WINAPI multimedia_stream_GetFilterGraph(IAMMultiMediaStream *iface,
IGraphBuilder **ppGraphBuilder)
static HRESULT WINAPI multimedia_stream_GetFilterGraph(IAMMultiMediaStream *iface, IGraphBuilder **graph)
{
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;
if (This->pFilterGraph)
return IGraphBuilder_QueryInterface(This->pFilterGraph, &IID_IGraphBuilder, (void**)ppGraphBuilder);
if (mmstream->pFilterGraph)
IGraphBuilder_AddRef(*graph = mmstream->pFilterGraph);
else
*ppGraphBuilder = NULL;
*graph = NULL;
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