Commit aba27fd5 authored by Anton Baskanov's avatar Anton Baskanov Committed by Alexandre Julliard

amstream: Call MediaStreamFilter::SupportSeeking() in AMMultiMediaStream::OpenFile().

parent 1c99a8e0
......@@ -442,6 +442,8 @@ static HRESULT WINAPI multimedia_stream_OpenFile(IAMMultiMediaStream *iface,
if (SUCCEEDED(ret) && !(flags & AMMSF_NORENDER))
ret = IGraphBuilder_Render(This->graph, This->ipin);
IMediaStreamFilter_SupportSeeking(This->filter, This->type == STREAMTYPE_READ);
if (EnumPins)
IEnumPins_Release(EnumPins);
if (BaseFilter)
......
......@@ -224,9 +224,13 @@ static void test_openfile(void)
if (pgraph)
IGraphBuilder_Release(pgraph);
check_interface(pams, &IID_IMediaSeeking, FALSE);
hr = IAMMultiMediaStream_OpenFile(pams, L"test.avi", 0);
ok(hr==S_OK, "IAMMultiMediaStream_OpenFile returned: %x\n", hr);
check_interface(pams, &IID_IMediaSeeking, TRUE);
hr = IAMMultiMediaStream_GetFilterGraph(pams, &pgraph);
ok(hr==S_OK, "IAMMultiMediaStream_GetFilterGraph returned: %x\n", hr);
ok(pgraph!=NULL, "Filtergraph should be created\n");
......
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