From 8e4f8771af34fc248716038e9db5c48ccac11d5a Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Wed, 4 Mar 2020 22:33:33 -0600 Subject: [PATCH] amstream: Explicitly create the graph in IAMMultiMediaStream::OpenFile(). Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/amstream/multimedia.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/amstream/multimedia.c b/dlls/amstream/multimedia.c index a14771ec753..43e3ee9057f 100644 --- a/dlls/amstream/multimedia.c +++ b/dlls/amstream/multimedia.c @@ -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);