Commit 8e4f8771 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

amstream: Explicitly create the graph in IAMMultiMediaStream::OpenFile().

parent e6a82aa8
......@@ -364,7 +364,11 @@ static HRESULT WINAPI multimedia_stream_OpenFile(IAMMultiMediaStream *iface,
/* If Initialize was not called before, we do it here */
if (!This->graph)
{
ret = IAMMultiMediaStream_Initialize(iface, STREAMTYPE_READ, 0, NULL);
if (SUCCEEDED(ret))
ret = create_graph(This, NULL);
}
if (SUCCEEDED(ret))
ret = IGraphBuilder_AddSourceFilter(This->graph, filename, L"Source", &BaseFilter);
......
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