amstream: Call MediaStreamFilter::SupportSeeking() in AMMultiMediaStream::OpenFile().
Signed-off-by: Anton Baskanov <baskanov@gmail.com> Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1c99a8e095
commit
aba27fd5a3
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue