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

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-03-04 22:33:33 -06:00 committed by Alexandre Julliard
parent e6a82aa8ee
commit 8e4f8771af
1 changed files with 4 additions and 0 deletions

View File

@ -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);