quartz/filtergraph: Unset the name of a removed filter.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-09-18 22:44:11 -05:00 committed by Alexandre Julliard
parent e0b98935d4
commit 9ed4b1f7f8
2 changed files with 1 additions and 3 deletions

View File

@ -681,7 +681,7 @@ static HRESULT WINAPI FilterGraph2_RemoveFilter(IFilterGraph2 *iface, IBaseFilte
IEnumPins_Release(penumpins); IEnumPins_Release(penumpins);
} }
hr = IBaseFilter_JoinFilterGraph(pFilter, NULL, entry->name); hr = IBaseFilter_JoinFilterGraph(pFilter, NULL, NULL);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
IBaseFilter_SetSyncSource(pFilter, NULL); IBaseFilter_SetSyncSource(pFilter, NULL);

View File

@ -1890,7 +1890,6 @@ static void test_add_remove_filter(void)
hr = IFilterGraph2_RemoveFilter(graph, &filter.IBaseFilter_iface); hr = IFilterGraph2_RemoveFilter(graph, &filter.IBaseFilter_iface);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(!filter.graph, "Got graph %p.\n", filter.graph); ok(!filter.graph, "Got graph %p.\n", filter.graph);
todo_wine
ok(!filter.name, "Got name %s.\n", wine_dbgstr_w(filter.name)); ok(!filter.name, "Got name %s.\n", wine_dbgstr_w(filter.name));
ok(!filter.clock, "Got clock %p,\n", filter.clock); ok(!filter.clock, "Got clock %p,\n", filter.clock);
ok(filter.ref == 1, "Got outstanding refcount %d.\n", filter.ref); ok(filter.ref == 1, "Got outstanding refcount %d.\n", filter.ref);
@ -1904,7 +1903,6 @@ todo_wine
hr = IFilterGraph2_Release(graph); hr = IFilterGraph2_Release(graph);
ok(!hr, "Got outstanding refcount %d.\n", hr); ok(!hr, "Got outstanding refcount %d.\n", hr);
ok(!filter.graph, "Got graph %p.\n", filter.graph); ok(!filter.graph, "Got graph %p.\n", filter.graph);
todo_wine
ok(!filter.name, "Got name %s.\n", wine_dbgstr_w(filter.name)); ok(!filter.name, "Got name %s.\n", wine_dbgstr_w(filter.name));
ok(!filter.clock, "Got clock %p.\n", filter.clock); ok(!filter.clock, "Got clock %p.\n", filter.clock);
ok(filter.ref == 1, "Got outstanding refcount %d.\n", filter.ref); ok(filter.ref == 1, "Got outstanding refcount %d.\n", filter.ref);