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

quartz/filtergraph: Don't require IAMFilterMiscFlags in IFilterGraph::SetDefaultSyncSource().

parent f4cbb2de
...@@ -918,16 +918,7 @@ static HRESULT WINAPI FilterGraph2_SetDefaultSyncSource(IFilterGraph2 *iface) ...@@ -918,16 +918,7 @@ static HRESULT WINAPI FilterGraph2_SetDefaultSyncSource(IFilterGraph2 *iface)
LIST_FOR_EACH_ENTRY(filter, &This->filters, struct filter, entry) LIST_FOR_EACH_ENTRY(filter, &This->filters, struct filter, entry)
{ {
DWORD miscflags; if (IBaseFilter_QueryInterface(filter->filter, &IID_IReferenceClock, (void **)&pClock) == S_OK)
IAMFilterMiscFlags *flags = NULL;
IBaseFilter_QueryInterface(filter->filter, &IID_IAMFilterMiscFlags, (void **)&flags);
if (!flags)
continue;
miscflags = IAMFilterMiscFlags_GetMiscFlags(flags);
IAMFilterMiscFlags_Release(flags);
if (miscflags == AM_FILTER_MISC_FLAGS_IS_RENDERER)
IBaseFilter_QueryInterface(filter->filter, &IID_IReferenceClock, (void **)&pClock);
if (pClock)
break; break;
} }
......
...@@ -3737,7 +3737,7 @@ static void test_default_sync_source(void) ...@@ -3737,7 +3737,7 @@ static void test_default_sync_source(void)
hr = IMediaFilter_GetSyncSource(filter, &clock); hr = IMediaFilter_GetSyncSource(filter, &clock);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#x.\n", hr);
todo_wine ok(clock == &source.IReferenceClock_iface, "Got unexpected clock.\n"); ok(clock == &source.IReferenceClock_iface, "Got unexpected clock.\n");
IReferenceClock_Release(clock); IReferenceClock_Release(clock);
/* The documentation says that connected filters are preferred, but this /* The documentation says that connected filters are preferred, but this
......
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