Rémi Bernon (@rbernon) commented about dlls/mf/tests/transform.c:
- }
- todo_wine
- ok(hr == DMO_E_NO_MORE_ITEMS, "GetInputType returned %#lx.\n", hr);
- todo_wine
- ok(i == count, "%lu types.\n", i);
- /* Test SetOutputType. */
- hr = IMediaObject_SetInputType(dmo, 0, NULL, DMO_SET_TYPEF_CLEAR);
- todo_wine
- ok(hr == S_OK, "SetInputType returned %#lx.\n", hr);
- hr = IMediaObject_SetOutputType(dmo, 1, NULL, 0);
- todo_wine
- ok(hr == DMO_E_INVALIDSTREAMINDEX, "SetOutputType returned %#lx.\n", hr);
- hr = IMediaObject_SetOutputType(dmo, 0, NULL, 0);
- todo_wine
- ok(hr == E_POINTER, "SetOutputType returned %#lx.\n", hr);
Probably you could also check if `IMediaObject_SetOutputType` with a valid type requires an input type to be set.